diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-07-31 00:34:39 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-07-31 00:34:39 +0300 |
commit | f7ba498c92346449b0ebac2da5c36c80a5d3d814 (patch) | |
tree | f2e508714f4bedbed2b2a0b4b72d004e07f5af5b | |
parent | 8f8dd36a3734b2bb75af275522b399a900b1b9e3 (diff) | |
download | libADLMIDI-f7ba498c92346449b0ebac2da5c36c80a5d3d814.tar.gz libADLMIDI-f7ba498c92346449b0ebac2da5c36c80a5d3d814.tar.bz2 libADLMIDI-f7ba498c92346449b0ebac2da5c36c80a5d3d814.zip |
Fix the visibility warning on C compiler
-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() |