cmake: OpenMP dep is not public

This commit is contained in:
Christoph Junghans 2020-04-14 15:15:16 -06:00
parent dcbf9f7d17
commit f5eb1c5b9d
1 changed files with 3 additions and 3 deletions

View File

@ -3,15 +3,15 @@ include(CMakeFindDependencyMacro)
if(@BUILD_MPI@)
find_dependency(MPI REQUIRED CXX)
endif()
if(@BUILD_OMP@)
find_dependency(OpenMP REQUIRED)
endif()
if(@PKG_KSPACE@)
if(@FFT@ STREQUAL "FFTW3")
find_dependency(@FFTW@ REQUIRED MODULE)
endif()
endif()
if(NOT @BUILD_SHARED_LIBS@)
if(@BUILD_OMP@)
find_dependency(OpenMP REQUIRED)
endif()
if(@WITH_JPEG@)
find_dependency(JPEG REQUIRED)
endif()