summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2016-07-30 13:41:15 (GMT)
committerGitHub <noreply@github.com>2016-07-30 13:41:15 (GMT)
commit2d8a8cedfb7b0eda7a46d218c70e226c81516b71 (patch)
tree60fd369698dc3aa6e7af3bd1fb887bb8967e0560 /cmake
parent4c56a9d883ec3ef6028223e8b0f209b85f6351e9 (diff)
parent41846b467bea58b904e26ce139394f7371ea5870 (diff)
downloadDoxygen-2d8a8cedfb7b0eda7a46d218c70e226c81516b71.zip
Doxygen-2d8a8cedfb7b0eda7a46d218c70e226c81516b71.tar.gz
Doxygen-2d8a8cedfb7b0eda7a46d218c70e226c81516b71.tar.bz2
Merge pull request #493 from t-b/winbuild_fix_building_with_libclang
Fix linker flags for building with clang on Windows
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}")