forked from lijiext/lammps
cmake: OpenMP dep is not public
This commit is contained in:
parent
dcbf9f7d17
commit
f5eb1c5b9d
|
@ -3,15 +3,15 @@ include(CMakeFindDependencyMacro)
|
||||||
if(@BUILD_MPI@)
|
if(@BUILD_MPI@)
|
||||||
find_dependency(MPI REQUIRED CXX)
|
find_dependency(MPI REQUIRED CXX)
|
||||||
endif()
|
endif()
|
||||||
if(@BUILD_OMP@)
|
|
||||||
find_dependency(OpenMP REQUIRED)
|
|
||||||
endif()
|
|
||||||
if(@PKG_KSPACE@)
|
if(@PKG_KSPACE@)
|
||||||
if(@FFT@ STREQUAL "FFTW3")
|
if(@FFT@ STREQUAL "FFTW3")
|
||||||
find_dependency(@FFTW@ REQUIRED MODULE)
|
find_dependency(@FFTW@ REQUIRED MODULE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(NOT @BUILD_SHARED_LIBS@)
|
if(NOT @BUILD_SHARED_LIBS@)
|
||||||
|
if(@BUILD_OMP@)
|
||||||
|
find_dependency(OpenMP REQUIRED)
|
||||||
|
endif()
|
||||||
if(@WITH_JPEG@)
|
if(@WITH_JPEG@)
|
||||||
find_dependency(JPEG REQUIRED)
|
find_dependency(JPEG REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue