Skip to content

Commit b8ac68b

Browse files
committed
add clang-cl
1 parent e320b12 commit b8ac68b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/shared_library/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ add_executable(quill_example_shared_lib example_shared.cpp)
44
set_common_compile_options(quill_example_shared_lib)
55
target_link_libraries(quill_example_shared_lib quill_shared_lib)
66

7-
# Optional
8-
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
7+
# Optional - apply visibility flag except for clang-cl
8+
if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR
9+
(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_CXX_COMPILER MATCHES "clang-cl"))
910
target_compile_options(quill_example_shared_lib PRIVATE -fvisibility=hidden)
1011
endif ()
1112

0 commit comments

Comments
 (0)