File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -3,22 +3,13 @@ project(scala-native-bindgen)
3
3
4
4
# Locate $LLVM_PATH/lib/cmake/clang/ClangConfig.cmake
5
5
find_package (Clang REQUIRED CONFIG )
6
+ message (STATUS "Found LLVM ${LLVM_PACKAGE_VERSION} " )
7
+ message (STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR} " )
6
8
7
- # Read and set CXXFLAGS and LDFLAGS
8
- execute_process (COMMAND llvm-config --cxxflags
9
- OUTPUT_VARIABLE LLVM_CXX_FLAGS
10
- OUTPUT_STRIP_TRAILING_WHITESPACE
11
- )
12
-
13
- execute_process (COMMAND llvm-config --ldflags
14
- OUTPUT_VARIABLE LLVM_LINKER_FLAGS
15
- OUTPUT_STRIP_TRAILING_WHITESPACE
16
- )
17
-
18
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LLVM_CXX_FLAGS} " )
19
- set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${LLVM_LINKER_FLAGS} " )
9
+ include_directories (${LLVM_INCLUDE_DIRS} )
10
+ add_definitions (${LLVM_DEFINITIONS} )
20
11
21
- add_compile_options (-fexceptions )
12
+ add_compile_options (-fexceptions -std=c++11 )
22
13
23
14
add_executable (scalaBindgen
24
15
Main.cpp
You can’t perform that action at this time.
0 commit comments