diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-02-12 07:51:02 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-02-12 07:51:02 (GMT) |
commit | a75ce54577a734af216565793d17f3c44331a8c5 (patch) | |
tree | 9cbb0f895b2d7578d863723b3d2927cbd245ef90 /src | |
parent | cc47950e84ed4c0a3d0a32d98bb3da0080467278 (diff) |
Remove OpenMP option.
It was only used for building some of the examples. Now, those
example are only built if OpenMP is found.
Change-Id: I816a52595fb00bb729adce83477f8e2f35dd6761
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index a0cfc46..f465b6b 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -23,7 +23,10 @@ if(TNG_BUILD_TEST) endif() if(TNG_BUILD_EXAMPLES) - if(TNG_USE_OPENMP AND OPENMP_FOUND) + find_package(OpenMP) + if(OPENMP_FOUND) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") add_executable(md_openmp md_openmp.c) target_link_libraries(md_openmp tng_io ${OpenMP_LIBS}) |