3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 13:53:40 +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:
Olivier Parcollet 2013-11-30 21:18:50 +01:00
parent f6e006c2e0
commit fb6b47cacf
4 changed files with 3 additions and 10 deletions

View File

@ -62,6 +62,9 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
# First check the C++ compiler # First check the C++ compiler
find_package(CompilerCheck) find_package(CompilerCheck)
# Add C11 flag
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
# Include TRIQS cmake macros # Include TRIQS cmake macros
find_package(TriqsMacros) find_package(TriqsMacros)

View File

@ -7,10 +7,6 @@ add_custom_target(py_copy ALL DEPENDS ${py_copy_tar})
find_package(CythonModuleMacro) 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 SET(PYTHON_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py ${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
${CMAKE_CURRENT_BINARY_DIR}/version.py ${CMAKE_CURRENT_BINARY_DIR}/version.py

View File

@ -1,5 +1,3 @@
# some specific flags for tests...
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
include_directories( ${CMAKE_SOURCE_DIR} ) include_directories( ${CMAKE_SOURCE_DIR} )
SET( link_libs ${LAPACK_LIBS} ${BOOST_LIBRARY} ) SET( link_libs ${LAPACK_LIBS} ${BOOST_LIBRARY} )

View File

@ -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 # all .cpp files to get the dependencies
FILE(GLOB_RECURSE ALLSOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp) FILE(GLOB_RECURSE ALLSOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
FOREACH(CPP ${ALLSOURCES}) FOREACH(CPP ${ALLSOURCES})