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 984519d commit bd6aa35Copy full SHA for bd6aa35
cpp/cmake_modules/SetupCxxFlags.cmake
@@ -23,6 +23,27 @@ include(CheckCXXSourceCompiles)
23
24
message(STATUS "System processor: ${CMAKE_SYSTEM_PROCESSOR}")
25
26
+set(UsingClang
27
+ CMAKE_C_COMPILER_ID
28
+ STREQUAL
29
+ "AppleClang"
30
+ OR
31
32
33
+ "Clang")
34
+set(UsingClangPlusPlus
35
+ CMAKE_CXX_COMPILER_ID
36
37
38
39
40
41
42
+
43
+if(UsingClangPlusPlus and NOT UsingClang)
44
+ error("When using clang++ you must also use clang")
45
+endif()
46
47
if(NOT DEFINED ARROW_CPU_FLAG)
48
if(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
49
set(ARROW_CPU_FLAG "emscripten")
0 commit comments