aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-07-31 01:15:14 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-07-31 01:15:14 +0300
commit20d95ee6b676c60b5611b14e4c94a25f99803da4 (patch)
treec2af6e768a591f56a8ef3b7c07e6b67a17de4162 /CMakeLists.txt
parent34f42407a2a2e90c2ba45e9e70c86529bd67c418 (diff)
downloadlibADLMIDI-20d95ee6b676c60b5611b14e4c94a25f99803da4.tar.gz
libADLMIDI-20d95ee6b676c60b5611b14e4c94a25f99803da4.tar.bz2
libADLMIDI-20d95ee6b676c60b5611b14e4c94a25f99803da4.zip
Exclude visibility options from off DJGPP build
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 916fa06..039b7d5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,7 +67,7 @@ function(set_legacy_standard destTarget)
endfunction()
function(set_visibility_hidden destTarget)
- if(CMAKE_C_COMPILER_ID MATCHES "^(GNU|Clang)$")
+ if(CMAKE_C_COMPILER_ID MATCHES "^(GNU|Clang)$" AND NOT DJGPP)
if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} VERSION_GREATER 3.2)
target_compile_options(${destTarget} PRIVATE
$<$<COMPILE_LANGUAGE:CXX>:-fvisibility-inlines-hidden> -fvisibility=hidden)