From 3fb15257e02c7631f2a19456fb104327892d0e14 Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Wed, 11 Oct 2017 14:01:20 +0200 Subject: [PATCH] Use compiler instead of gcc for variable names --- src/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fb1884fae..92b730d2b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -16,14 +16,14 @@ set_target_properties(${PROJECT_NAME} PROPERTIES ################################################# # Macro to check for visibility capability in compiler # Original idea from: https://gitorious.org/ferric-cmake-stuff/ -macro (check_gcc_visibility) +macro (check_compiler_visibility) include (CheckCXXCompilerFlag) - check_cxx_compiler_flag(-fvisibility=hidden GCC_SUPPORTS_VISIBILITY) + check_cxx_compiler_flag(-fvisibility=hidden COMPILER_SUPPORTS_VISIBILITY) endmacro() if (UNIX) - check_gcc_visibility() - if (GCC_SUPPORTS_VISIBILITY) + check_compiler_visibility() + if (COMPILER_SUPPORTS_VISIBILITY) set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fvisibility=hidden") endif()