diff options
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d4cec2..ba03fbd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ endfunction() function(set_visibility_hidden destTarget) if(CMAKE_C_COMPILER_ID MATCHES "^(GNU|Clang)$") target_compile_options(${destTarget} PRIVATE - -fvisibility=hidden -fvisibility-inlines-hidden) + $<$<COMPILE_LANGUAGE:CXX>:-fvisibility-inlines-hidden> -fvisibility=hidden) target_compile_definitions(${destTarget} PRIVATE "LIBADLMIDI_VISIBILITY") endif() |