Merge remote-tracking branch 'github/junghans-CMake-typo' into simplify_build_choices

This commit is contained in:
Axel Kohlmeyer 2020-04-09 09:44:12 -04:00
commit 69a38115ce
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 32 additions and 28 deletions

View File

@ -2,20 +2,22 @@ include(CMakeFindDependencyMacro)
if(@BUILD_MPI@) if(@BUILD_MPI@)
find_dependency(MPI REQUIRED CXX) find_dependency(MPI REQUIRED CXX)
endif() endif()
if(@PKG_KSPACE@ AND @FFT@ STREQUAL "FFTW3") if(@PKG_KSPACE@)
if(@FFTW@ STREQUAL "FFTW3" AND NOT TARGET FFTW3::FFTW3) if(@FFT@ STREQUAL "FFTW3")
add_library(FFTW3::FFTW3 UNKNOWN IMPORTED) if(@FFTW@ STREQUAL "FFTW3" AND NOT TARGET FFTW3::FFTW3)
set_target_properties(FFTW3::FFTW3 PROPERTIES add_library(FFTW3::FFTW3 UNKNOWN IMPORTED)
IMPORTED_LINK_INTERFACE_LANGUAGES "C" set_target_properties(FFTW3::FFTW3 PROPERTIES
IMPORTED_LOCATION "@FFTW3_LIBRARY@" IMPORTED_LINK_INTERFACE_LANGUAGES "C"
INTERFACE_INCLUDE_DIRECTORIES "@FFTW3_INCLUDE_DIRS@") IMPORTED_LOCATION "@FFTW3_LIBRARY@"
endif() INTERFACE_INCLUDE_DIRECTORIES "@FFTW3_INCLUDE_DIRS@")
if(@FFTW@ STREQUAL "FFTW3F" AND NOT TARGET FFTW3F::FFTW3F) endif()
add_library(FFTW3F::FFTW3F UNKNOWN IMPORTED) if(@FFTW@ STREQUAL "FFTW3F" AND NOT TARGET FFTW3F::FFTW3F)
set_target_properties(FFTW3F::FFTW3F PROPERTIES add_library(FFTW3F::FFTW3F UNKNOWN IMPORTED)
IMPORTED_LINK_INTERFACE_LANGUAGES "C" set_target_properties(FFTW3F::FFTW3F PROPERTIES
IMPORTED_LOCATION "@FFTW3F_LIBRARY@" IMPORTED_LINK_INTERFACE_LANGUAGES "C"
INTERFACE_INCLUDE_DIRECTORIES "@FFTW3F_INCLUDE_DIRS@") IMPORTED_LOCATION "@FFTW3F_LIBRARY@"
INTERFACE_INCLUDE_DIRECTORIES "@FFTW3F_INCLUDE_DIRS@")
endif()
endif() endif()
endif() endif()
if(NOT @BUILD_SHARED_LIBS@) if(NOT @BUILD_SHARED_LIBS@)
@ -36,20 +38,22 @@ if(NOT @BUILD_SHARED_LIBS@)
if(@PKG_USER-SMD@ AND NOT @DOWNLOAD_EIGEN3@) if(@PKG_USER-SMD@ AND NOT @DOWNLOAD_EIGEN3@)
find_dependency(Eigen3 NO_MODULE REQUIRED) find_dependency(Eigen3 NO_MODULE REQUIRED)
endif() endif()
if(@PKG_KSPACE@ AND @FFT@ STREQUAL "FFTW3" AND @FFT_FFTW_THREADS@) if(@PKG_KSPACE@)
if(@FFTW@ STREQUAL "FFTW3" AND NOT TARGET FFTW3::FFTW3_OMP) if(@FFT@ STREQUAL "FFTW3" AND @FFT_FFTW_THREADS@)
add_library(FFTW3::FFTW3_OMP UNKNOWN IMPORTED) if(@FFTW@ STREQUAL "FFTW3" AND NOT TARGET FFTW3::FFTW3_OMP)
set_target_properties(FFTW3::FFTW3_OMP PROPERTIES add_library(FFTW3::FFTW3_OMP UNKNOWN IMPORTED)
IMPORTED_LINK_INTERFACE_LANGUAGES "C" set_target_properties(FFTW3::FFTW3_OMP PROPERTIES
IMPORTED_LOCATION "@FFTW3_OMP_LIBRARY@" IMPORTED_LINK_INTERFACE_LANGUAGES "C"
INTERFACE_INCLUDE_DIRECTORIES "@FFTW3_OMP_INCLUDE_DIRS@") IMPORTED_LOCATION "@FFTW3_OMP_LIBRARY@"
endif() INTERFACE_INCLUDE_DIRECTORIES "@FFTW3_OMP_INCLUDE_DIRS@")
if(@FFTW@ STREQUAL "FFTW3F" AND NOT TARGET FFTW3F::FFTW3F_OMP) endif()
add_library(FFTW3F::FFTW3F_OMP UNKNOWN IMPORTED) if(@FFTW@ STREQUAL "FFTW3F" AND NOT TARGET FFTW3F::FFTW3F_OMP)
set_target_properties(FFTW3F::FFTW3F_OMP PROPERTIES add_library(FFTW3F::FFTW3F_OMP UNKNOWN IMPORTED)
IMPORTED_LINK_INTERFACE_LANGUAGES "C" set_target_properties(FFTW3F::FFTW3F_OMP PROPERTIES
IMPORTED_LOCATION "@FFTW3F_OMP_LIBRARY@" IMPORTED_LINK_INTERFACE_LANGUAGES "C"
INTERFACE_INCLUDE_DIRECTORIES "@FFTW3F_OMP_INCLUDE_DIRS@") IMPORTED_LOCATION "@FFTW3F_OMP_LIBRARY@"
INTERFACE_INCLUDE_DIRECTORIES "@FFTW3F_OMP_INCLUDE_DIRS@")
endif()
endif() endif()
endif() endif()
if(@PKG_USER-SCAFACOS@ AND NOT @DOWNLOAD_SCAFACOS@) if(@PKG_USER-SCAFACOS@ AND NOT @DOWNLOAD_SCAFACOS@)