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 e320b12 commit b8ac68bCopy full SHA for b8ac68b
examples/shared_library/CMakeLists.txt
@@ -4,8 +4,9 @@ add_executable(quill_example_shared_lib example_shared.cpp)
4
set_common_compile_options(quill_example_shared_lib)
5
target_link_libraries(quill_example_shared_lib quill_shared_lib)
6
7
-# Optional
8
-if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+# Optional - apply visibility flag except for clang-cl
+if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR
9
+(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_CXX_COMPILER MATCHES "clang-cl"))
10
target_compile_options(quill_example_shared_lib PRIVATE -fvisibility=hidden)
11
endif ()
12
0 commit comments