Skip to content

Commit

Permalink
Don't set -fvisibility=hidden on Windows (#516)
Browse files Browse the repository at this point in the history
to allow building with Clang in Visual Studio
  • Loading branch information
t-sommer authored Jun 14, 2024
1 parent 1ed89c6 commit 141512e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if (MSVC)
endif ()

# hide internal functions
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|AppleClang")
if (UNIX AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|AppleClang")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
endif()

Expand Down

0 comments on commit 141512e

Please sign in to comment.