Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
set(SANITIZER_MODE "none" CACHE STRING "Build using a specific sanitizer (e.g. 'address', 'thread', 'leak', 'undefined'), depends on compiler; default none")
+set(LINK_LIBCXX OFF CACHE BOOL "Link against LLVMs libc++")
+
add_subdirectory(src)
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