mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-09 06:31:00 -06:00
Merge pull request #2 from mloskot/cmake-flags-fix
Fix for CMake build type default flags being lost
This commit is contained in:
@@ -28,9 +28,9 @@ enable_testing()
|
||||
|
||||
message(STATUS "Using ${CMAKE_CXX_COMPILER} (compiler id: ${CMAKE_CXX_COMPILER_ID})")
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++")
|
||||
set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ ${CMAKE_CXX_FLAGS}")
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
set(CMAKE_CXX_FLAGS "-std=c++11")
|
||||
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
|
||||
endif ()
|
||||
|
||||
include_directories("${PROJECT_SOURCE_DIR}/include")
|
||||
|
||||
Reference in New Issue
Block a user