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 14542c2 commit 3e5bbb0Copy full SHA for 3e5bbb0
CMakeLists.txt
@@ -54,6 +54,14 @@ if (CMAKE_COMPILER_IS_GNUCC)
54
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Winline")
55
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wconversion")
56
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wswitch-enum")
57
+else()
58
+ message("The default compiler set in CC is not supported.")
59
+ message("You need to use gcc with a version >= 4.2. ")
60
+ message("You can set your default compiler either by updating your CC variable environment:")
61
+ message("export CC=/path/to/gcc")
62
+ message("Or by adding a flag when calling CMake: ")
63
+ message("-D CMAKE_C_COMPILER=gcc")
64
+ message( FATAL_ERROR "CMake will exit.")
65
endif()
66
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SAN_CFLAGS}")
67
0 commit comments