aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexander Grund <alexander.grund@tu-dresden.de>2018-12-13 10:35:38 +0100
committerAlexander Grund <alexander.grund@tu-dresden.de>2018-12-13 10:42:21 +0100
commit2fd13442097f92350ee481361f73015c918d91b5 (patch)
tree3c80cca0d8bb7ec8dd086b31fc7c3c24d7f783fc /CMakeLists.txt
parent24d7bc8fa17765695752eddfb51865d983dc5cf8 (diff)
downloadlibADLMIDI-2fd13442097f92350ee481361f73015c918d91b5.tar.gz
libADLMIDI-2fd13442097f92350ee481361f73015c918d91b5.tar.bz2
libADLMIDI-2fd13442097f92350ee481361f73015c918d91b5.zip
Improve compiler checks
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 c5a5f17..77454ca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,7 +68,7 @@ endfunction()
function(set_visibility_hidden destTarget)
if(CMAKE_C_COMPILER_ID MATCHES "^(GNU|Clang)$" AND NOT DJGPP)
- if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} VERSION_GREATER 3.2)
+ if(CMAKE_VERSION VERSION_GREATER 3.2)
target_compile_options(${destTarget} PRIVATE
$<$<COMPILE_LANGUAGE:CXX>:-fvisibility-inlines-hidden> -fvisibility=hidden)
else()