-#TODO:
-SET(CMAKE_CXX_FLAGS "-Wfatal-errors -D_REENTRANT -fPIC -O2 -march=native")
-SET(CMAKE_C_FLAGS "-Wfatal-errors -D_REENTRANT -fPIC -O2 -march=native")
-
#
# Now, configure a lot of things:
# Feature configuration:
#
+INCLUDE(configure_compiler_flags)
+
INCLUDE(configure_boost)
IF(DEAL_II_WITH_FUNCTIONPARSER)
SET(DEAL_II_USE_EXTERNAL_BOOST TRUE)
ENDIF()
-ENDIF()
+ELSE()
+
+ # compile the necessary parts of boost out of ./contrib
-# ELSE() nothing to do. We compile the necessary boost source files
-# directly if DEAL_II_USE_EXTERNAL_BOOST is not set.
+ ADD_DEFINITIONS("-DBOOST_NO_HASH" "-DBOOST_NO_SLIST")
+
+ENDIF()
--- /dev/null
+#TODO:
+SET(CMAKE_CXX_FLAGS "-Wfatal-errors -D_REENTRANT -fPIC -O2 -march=native")
+SET(CMAKE_C_FLAGS "-Wfatal-errors -D_REENTRANT -fPIC -O2 -march=native")
+
FIND_PACKAGE(Threads REQUIRED)
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_THREAD_LIBS_INIT}") # TODO
-LIST(APPEND deal_ii_required_linker_flags ${CMAKE_THREAD_LIBS_INIT}) # TODO
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_THREAD_LIBS_INIT}")
+LIST(APPEND deal_ii_required_linker_flags ${CMAKE_THREAD_LIBS_INIT})
IF(NOT DEAL_II_FORCE_CONTRIB_TBB)
IF(DEAL_II_ALLOW_CONTRIB)
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams