Skip to content

Commit

Permalink
Merge branch 'master' into f/sf-algo
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich authored Apr 1, 2024
2 parents f4fe720 + 30a8102 commit 568a87e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ endif()

add_library(nalu "")

########################## MPI ####################################
find_package(MPI REQUIRED)
target_link_libraries(nalu PUBLIC $<$<BOOL:${MPI_CXX_FOUND}>:MPI::MPI_CXX>)

if(ENABLE_CUDA)
enable_language(CUDA)
find_package(CUDAToolkit REQUIRED)
Expand Down Expand Up @@ -185,6 +181,7 @@ if(ENABLE_OPENFAST_FSI)
endif()
if(ENABLE_OPENFAST)
set(CMAKE_PREFIX_PATH ${OpenFAST_DIR} ${CMAKE_PREFIX_PATH})
enable_language(Fortran)
find_package(OpenFAST QUIET REQUIRED)
message(STATUS "Found OpenFAST = ${OpenFAST_LIBRARY_DIRS}")
target_link_libraries(nalu PUBLIC ${OpenFAST_LIBRARIES} ${OpenFAST_CPP_LIBRARIES})
Expand All @@ -205,6 +202,10 @@ if(ENABLE_TIOGA)
endif()
endif()

########################## MPI ####################################
find_package(MPI REQUIRED)
target_link_libraries(nalu PUBLIC $<$<BOOL:${MPI_CXX_FOUND}>:MPI::MPI_CXX>)
target_link_libraries(nalu PUBLIC $<$<BOOL:${MPI_Fortran_FOUND}>:MPI::MPI_Fortran>)

############################ MATRIXREE #####################################
if(ENABLE_MATRIXFREE)
Expand Down

0 comments on commit 568a87e

Please sign in to comment.