@@ -5,27 +5,23 @@ list(APPEND CMAKE_MODULE_PATH ${pfasst_SOURCE_DIR}/cmake)
55include (cmake/utility_functions.cmake)
66include (CheckCXXCompilerFlag)
77include (ExternalProject)
8- # Set default ExternalProject root directory
98set_directory_properties (PROPERTIES EP_PREFIX ${CMAKE_BINARY_DIR} /3rdparty)
109
1110option (pfasst_DISABLE_LIBCXX "Disable use of LLVM's libc++ when compiling with Clang." ON )
1211option (pfasst_BUILD_EXAMPLES "Build example programs." ON )
1312option (pfasst_BUILD_TESTS "Build test suite for PFASST." ON )
1413option (pfasst_WITH_MPI "Build with MPI enabled." OFF )
1514
16- # output directories
1715set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${pfasst_SOURCE_DIR} /dist/bin" )
1816set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${pfasst_SOURCE_DIR} /dist/lib" )
1917set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${pfasst_SOURCE_DIR} /dist/lib" )
2018
2119if (${pfasst_WITH_MPI} )
2220 find_package (MPI REQUIRED)
23- # set(CMAKE_C_COMPILER ${MPI_C_COMPILER})
24- # set(CMAKE_CXX_COMPILER ${MPI_CXX_COMPILER})
2521 message (STATUS "Using MPI C++ Compiler: ${MPI_CXX_COMPILER} " )
2622endif ()
2723
28- # check for C++11 support
24+ # Check for C++11 support
2925if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
3026 check_cxx_compiler_flag(-std=c++11 HAVE_STD11)
3127 if (HAVE_STD11)
6359endif ()
6460message (STATUS "Your compiler has C++11 support. Hurray!" )
6561
66- # enable all compiler warnings
6762add_to_string_list("${CMAKE_CXX_FLAGS} " CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic" )
6863
6964set (3rdparty_INCLUDES)
@@ -75,13 +70,8 @@ if(pfasst_BUILD_TESTS)
7570 enable_testing ()
7671endif (pfasst_BUILD_TESTS)
7772
78- # adding / including 3rd-party libraries
7973message (STATUS "********************************************************************************" )
8074message (STATUS "Configuring 3rd party libraries" )
81- # makes available:
82- # - fftw3_INCLUDES (if pfasst_BUILD_EXAMPLES)
83- # - fftw3_LIBS (if pfasst_BUILD_EXAMPLES)
84- # and Boost headers in 3rdparty_INCLUDES
8575add_subdirectory (3rdparty)
8676
8777message (STATUS "********************************************************************************" )
0 commit comments