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:
Leonardo de Moura 2013-07-17 12:41:28 -07:00
parent d72f24a5e5
commit c0f9f06d70
2 changed files with 3 additions and 1 deletions

View file

@ -38,7 +38,7 @@ include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMP DEFAULT_MSG 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(shell)

View file

@ -8,5 +8,7 @@ include_directories("${LEAN_BINARY_DIR}")
include_directories (${LEAN_SOURCE_DIR}/util)
set (EXTRA_LIBS ${EXTRA_LIBS} util ${GMP_LIBRARIES})
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
add_executable(lean lean.cpp)
target_link_libraries (lean ${EXTRA_LIBS})