We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8ac68b commit f140efeCopy full SHA for f140efe
examples/shared_library/quill_shared_lib/CMakeLists.txt
@@ -11,7 +11,8 @@ target_include_directories(${LIB_NAME}
11
$<INSTALL_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
12
13
# Optional - Set the compiler flags for GCC/Clang
14
-if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR
15
+(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_CXX_COMPILER MATCHES "clang-cl"))
16
target_compile_options(${LIB_NAME} PRIVATE -fvisibility=hidden)
17
endif ()
18
0 commit comments