Skip to content

Commit 1360f7f

Browse files
committed
CMake refers to Clang on a Mac as AppleClang
1 parent f27e724 commit 1360f7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
1717
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
1818

1919
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
20+
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang" OR
2021
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU"
2122
)
2223
# Ensure NDEBUG is not set for release builds
@@ -69,6 +70,7 @@ macro(git_revision target files_var)
6970
endif()
7071

7172
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
73+
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang" OR
7274
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU"
7375
)
7476
set_source_files_properties(

0 commit comments

Comments
 (0)