We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fa0dee commit 1d8ebe8Copy full SHA for 1d8ebe8
CMakeLists.txt
@@ -16,10 +16,6 @@ get_git_version(
16
project(slang VERSION "${SLANG_VERSION_NUMERIC}" LANGUAGES)
17
set(PROJECT_VERSION "${SLANG_VERSION_FULL}")
18
19
-if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
20
- message(FATAL_ERROR "C++ compiler is not AppleClang")
21
-endif()
22
-
23
execute_process(
24
COMMAND
25
bash -c
@@ -55,6 +51,10 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
55
51
# CMake-supplied modules and our utils
56
52
#
57
53
enable_language(C CXX)
54
+if(NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL "AppleClang")
+ message(FATAL_ERROR "C++ compiler is not AppleClang")
+endif()
+
58
59
include(FindPackageHandleStandardArgs)
60
include(CMakeDependentOption)
0 commit comments