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.
2 parents cdaa7a1 + c2effbf commit f616e29Copy full SHA for f616e29
CMakeLists.txt
@@ -1,5 +1,15 @@
1
cmake_minimum_required(VERSION 3.2)
2
3
+# Compile with /usr/bin/clang on MacOS
4
+# See https://github.com/diffblue/cbmc/issues/4956
5
+#
6
+if (CMAKE_HOST_SYSTEM_NAME STREQUAL Darwin)
7
+ if(NOT DEFINED CMAKE_C_COMPILER)
8
+ message(STATUS "Setting CMAKE_C_COMPILER to /usr/bin/clang for MacOS")
9
+ set(CMAKE_C_COMPILER "/usr/bin/clang")
10
+ endif()
11
+endif()
12
+
13
# If cmake generates files inside of the cbmc source directory this can lead to important files being overwritten, so we prevent that here
14
if("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
15
message(FATAL_ERROR
0 commit comments