Commit dead700c authored by Lars Kuehne's avatar Lars Kuehne

Update CMakeLists.txt

parent 0ffe416b
...@@ -7,10 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED TRUE) ...@@ -7,10 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
find_package(OpenMP) find_package(OpenMP)
add_executable(dynamicsystems main.cpp compute.cpp) add_executable(dynamicsystems main.cpp compute.cpp)
if(OPENMP_FOUND) if(OPENMP_FOUND)
target_compile_options(dynamicsystems PRIVATE ${OpenMP_CXX_FLAGS}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
target_link_libraries(dynamicsystems PRIVATE ${OpenMP_CXX_FLAGS})
endif()
endif() endif()
find_package(Boost REQUIRED COMPONENTS program_options) find_package(Boost REQUIRED COMPONENTS program_options)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment