summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorThomas Braun <thomas.braun@byte-physics.de>2016-07-28 08:02:19 (GMT)
committerThomas Braun <thomas.braun@byte-physics.de>2016-07-28 08:02:19 (GMT)
commit41846b467bea58b904e26ce139394f7371ea5870 (patch)
treeae989239be445cf0fb1549484b92da52ae6b6e0a /cmake
parentff7d28bd0ea7538d4a9c65facd0b5ca057f867d8 (diff)
downloadDoxygen-41846b467bea58b904e26ce139394f7371ea5870.zip
Doxygen-41846b467bea58b904e26ce139394f7371ea5870.tar.gz
Doxygen-41846b467bea58b904e26ce139394f7371ea5870.tar.bz2
Fix linker flags for building with clang on Windows
Signed-off-by: Thomas Braun <thomas.braun@byte-physics.de>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindLibClang.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/FindLibClang.cmake b/cmake/FindLibClang.cmake
index 2835b1f..e7462d4 100644
--- a/cmake/FindLibClang.cmake
+++ b/cmake/FindLibClang.cmake
@@ -38,7 +38,11 @@ if (NOT CLANG_LIBS)
if (NOT EXISTS ${CLANG_CLANG_LIB_HACK_CMAKECACHE_DOT_TEXT_BULLSHIT})
find_library(CLANG_LIBS NAMES clang libclang)
if (NOT EXISTS ${CLANG_LIBS})
- set (CLANG_LIBS "-L${CLANG_LIBDIR}" "-lclang" "-Wl,-rpath,${CLANG_LIBDIR}")
+ if (MSVC)
+ set (CLANG_LIBS "${CLANG_LIBDIR}/libclang.lib")
+ else()
+ set (CLANG_LIBS "-L${CLANG_LIBDIR}" "-lclang" "-Wl,-rpath,${CLANG_LIBDIR}")
+ endif()
endif ()
else ()
set(CLANG_LIBS "${CLANG_LIB_HACK_CMAKECACHE_DOT_TEXT_BULLSHIT}")