mirror of
https://github.com/triqs/dft_tools
synced 2024-10-31 11:13:46 +01:00
cmake. group c++11 flags
Now that boost compilation is gone, no need of that mess. Put same compilation flags for all code.
This commit is contained in:
parent
f6e006c2e0
commit
fb6b47cacf
@ -62,6 +62,9 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
# First check the C++ compiler
|
||||
find_package(CompilerCheck)
|
||||
|
||||
# Add C11 flag
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
|
||||
|
||||
# Include TRIQS cmake macros
|
||||
find_package(TriqsMacros)
|
||||
|
||||
|
@ -7,10 +7,6 @@ add_custom_target(py_copy ALL DEPENDS ${py_copy_tar})
|
||||
|
||||
find_package(CythonModuleMacro)
|
||||
|
||||
# Add C11 flag
|
||||
# Put this up when boost python will be removed (or fixed for C++11).
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
|
||||
|
||||
SET(PYTHON_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
|
||||
${CMAKE_CURRENT_BINARY_DIR}/version.py
|
||||
|
@ -1,5 +1,3 @@
|
||||
# some specific flags for tests...
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
|
||||
include_directories( ${CMAKE_SOURCE_DIR} )
|
||||
|
||||
SET( link_libs ${LAPACK_LIBS} ${BOOST_LIBRARY} )
|
||||
|
@ -1,7 +1,3 @@
|
||||
# Add C11 flag
|
||||
# leave it here because boost has to be compiled without the flags because of boost python ??
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
|
||||
|
||||
# all .cpp files to get the dependencies
|
||||
FILE(GLOB_RECURSE ALLSOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
|
||||
FOREACH(CPP ${ALLSOURCES})
|
||||
|
Loading…
Reference in New Issue
Block a user