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.
This commit is contained in:
parent
abfc8ee52f
commit
576f7bb9cc
@ -234,7 +234,10 @@ endif(OPENGL_FOUND)
|
|||||||
# Its sole purpose is to issue compilation warnings during build time if
|
# Its sole purpose is to issue compilation warnings during build time if
|
||||||
# variables are shadowed in public headers.
|
# 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")
|
set(include_all "${CMAKE_CURRENT_BINARY_DIR}/include_all.h")
|
||||||
file(WRITE ${include_all} "/* DO NOT EDIT - this file is created by CMake */\n")
|
file(WRITE ${include_all} "/* DO NOT EDIT - this file is created by CMake */\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user