diff options
author | 2017-07-24 11:41:58 +0200 | |
---|---|---|
committer | 2017-08-08 17:24:00 +0200 | |
commit | c06629773b1acb6a78bc5903d16a967e751ce739 (patch) | |
tree | 0ca1576f2274ecd8e6c54e492545cce4fbe0af2d /src | |
parent | 9e29f23cc3afcd33c4735a397ca94b5d7bed3326 (diff) |
cmake: add opton to link against LLVM's libc++
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ebb1946..f2c9b3a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -65,6 +65,12 @@ set_target_properties(winman LINK_FLAGS "-Wl,--version-script=../../export.map") +if (LINK_LIBCXX) + set_target_properties(winman + PROPERTIES + LINK_FLAGS "-Wl,--version-script=../../export.map -lc++") +endif() + if (NOT ${SANITIZER_MODE} STREQUAL "none" AND NOT ${SANITIZER_MODE} STREQUAL "") target_compile_options(winman PRIVATE |