-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
file(GLOB PDAF_BASE_SOURCES *.F90) | ||
|
||
find_package(LAPACK REQUIRED) | ||
find_package(BLAS REQUIRED) | ||
|
||
add_library(PDAF_base STATIC ${PDAF_BASE_SOURCES}) | ||
target_include_directories(PDAF_base PRIVATE dummympi) | ||
target_link_libraries(PDAF_base PRIVATE ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES}) | ||
target_compile_options(PDAF_base PRIVATE "-fdefault-real-8") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
file(GLOB PDAF_USER_SOURCES *.F90) | ||
|
||
set(CMAKE_Fortran_COMPILER "mpifort") | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
LSchueler
Author
Member
|
||
|
||
find_package(MPI REQUIRED) | ||
find_package(LAPACK REQUIRED) | ||
find_package(BLAS REQUIRED) | ||
|
||
add_library(pdaf ${PDAF_USER_SOURCES}) | ||
target_include_directories(pdaf PRIVATE dummympi) | ||
target_link_libraries(pdaf PRIVATE PDAF_base) | ||
target_link_libraries(pdaf PRIVATE ${MPI_LIBRARIES} ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES}) | ||
|
||
if(APPLE AND BUILD_SHARED_LIBS) | ||
target_link_libraries(pdaf PUBLIC "-framework Accelerate") | ||
|
Do not set this variable. The user has to set this via env variable on first CMake run (or it is already by the a loaded module etc.):