diff options
author | Michael Dickens <michael.dickens@ettus.com> | 2018-11-16 08:51:28 -0800 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2018-11-17 20:10:41 +0100 |
commit | 9a13da0fc9a6118a8e4c904ec5b0f7a26e876685 (patch) | |
tree | 7195c91fd3a6a52b2af5260d1696153b0d532f8c /gr-utils/python | |
parent | a976029ea9c3e69dde3ee3d900d60a85ecda646d (diff) |
cmake: replace 'CMAKE_COMPILER_IS_GNUCXX' with CMAKE_CXX_COMPILER_ID
... and expand from just GNU to both GNU and Clang, since they work comparably for the flags being tested.
Diffstat (limited to 'gr-utils/python')
-rw-r--r-- | gr-utils/python/modtool/gr-newmod/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-utils/python/modtool/gr-newmod/CMakeLists.txt b/gr-utils/python/modtool/gr-newmod/CMakeLists.txt index c079c3db13..0496ceeaa4 100644 --- a/gr-utils/python/modtool/gr-newmod/CMakeLists.txt +++ b/gr-utils/python/modtool/gr-newmod/CMakeLists.txt @@ -67,7 +67,9 @@ endif() ######################################################################## # Compiler specific setup ######################################################################## -if(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32) +if((CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR + CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + AND NOT WIN32) #http://gcc.gnu.org/wiki/Visibility add_definitions(-fvisibility=hidden) endif() |