Set clang++ as default compiler. Add -pthread as a linker flag
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
d72f24a5e5
commit
c0f9f06d70
2 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,7 @@ include(FindPackageHandleStandardArgs)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMP DEFAULT_MSG GMP_INCLUDE_DIR GMP_LIBRARIES)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMP DEFAULT_MSG GMP_INCLUDE_DIR GMP_LIBRARIES)
|
||||||
mark_as_advanced(GMP_INCLUDE_DIR GMP_LIBRARIES)
|
mark_as_advanced(GMP_INCLUDE_DIR GMP_LIBRARIES)
|
||||||
|
|
||||||
set (CMAKE_CXX_COMPILER "g++-4.8")
|
set (CMAKE_CXX_COMPILER clang++)
|
||||||
|
|
||||||
add_subdirectory(util)
|
add_subdirectory(util)
|
||||||
add_subdirectory(shell)
|
add_subdirectory(shell)
|
||||||
|
|
|
@ -8,5 +8,7 @@ include_directories("${LEAN_BINARY_DIR}")
|
||||||
include_directories (${LEAN_SOURCE_DIR}/util)
|
include_directories (${LEAN_SOURCE_DIR}/util)
|
||||||
set (EXTRA_LIBS ${EXTRA_LIBS} util ${GMP_LIBRARIES})
|
set (EXTRA_LIBS ${EXTRA_LIBS} util ${GMP_LIBRARIES})
|
||||||
|
|
||||||
|
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
|
||||||
|
|
||||||
add_executable(lean lean.cpp)
|
add_executable(lean lean.cpp)
|
||||||
target_link_libraries (lean ${EXTRA_LIBS})
|
target_link_libraries (lean ${EXTRA_LIBS})
|
||||||
|
|
Loading…
Reference in a new issue