|
@ -10,13 +10,13 @@ else() |
|
|
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wextra -Wconversion -Wno-sign-conversion -Wno-unknown-pragmas ${CMAKE_CXX_FLAGS}") |
|
|
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wextra -Wconversion -Wno-sign-conversion -Wno-unknown-pragmas ${CMAKE_CXX_FLAGS}") |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
|
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT ${CMAKE_BUILD_TYPE} STREQUAL "DebugSan") |
|
|
# Do not allow unresovled symbols in shared library (default on linux) |
|
|
# Do not allow unresovled symbols in shared library (default on linux) |
|
|
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined") |
|
|
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined") |
|
|
endif() |
|
|
endif() |
|
|
|
|
|
|
|
|
# LLVM |
|
|
# LLVM |
|
|
find_package(LLVM REQUIRED CONFIG) |
|
|
find_package(LLVM 3.7 REQUIRED CONFIG) |
|
|
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") |
|
|
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") |
|
|
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") |
|
|
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") |
|
|
add_definitions(${LLVM_DEFINITIONS}) |
|
|
add_definitions(${LLVM_DEFINITIONS}) |
|
|