diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-04-22 16:54:25 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-04-22 16:54:25 +0200 |
| commit | 576f7bb9cca487cd7ffb2d3ebbb3cde3e01228df (patch) | |
| tree | 48b9d930a6ccba726d31afcb8210d9f8fec43e7b /test/CMakeLists.txt | |
| parent | abfc8ee52f5e7b7e9022dd0bb6fd370a0e9c32af (diff) | |
Enable 'shadow_variables' test on macOS using AppleClang
The CMake compiler ID on macOS is AppleClang rather than Clang.
This commit checks for this compiler ID as well.
Diffstat (limited to 'test/CMakeLists.txt')
| -rw-r--r-- | test/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3a1db7070..05d090ff0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -234,7 +234,10 @@ endif(OPENGL_FOUND) # Its sole purpose is to issue compilation warnings during build time if # variables are shadowed in public headers. -if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") +fl_debug_var(CMAKE_CXX_COMPILER_ID) +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR + CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR + CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") set(include_all "${CMAKE_CURRENT_BINARY_DIR}/include_all.h") file(WRITE ${include_all} "/* DO NOT EDIT - this file is created by CMake */\n") |
