Pass compiler flags for Clang

This commit is contained in:
xboi209 2015-10-10 13:54:31 -07:00
parent 5a455db8e2
commit 33b4b61c95

View file

@ -44,6 +44,13 @@ if (MSVC)
endif()
endif ()
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pedantic")
# Pass CXX flags to flags.
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSEQAN_CXX_FLAGS_=\"${CMAKE_CXX_FLAGS}\"")
endif()
subdirs(src conf man files)
if(WITH_LUA)
add_subdirectory(lua)