Skip to content

Commit

Permalink
Merge pull request #147 from nmnobre/cmake_alias
Browse files Browse the repository at this point in the history
Fix target_link_libraries calls w/ alias target
  • Loading branch information
ax3l authored Jan 16, 2025
2 parents 51fabc1 + 78c2f38 commit beca1f5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions GuidedTutorials/HeatEquation/Exec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ else()
message("-- Searching for AMReX install directory at ${AMReX_ROOT}")
find_package(AMReX REQUIRED PATHS ${AMReX_ROOT}/lib/cmake/AMReX/AMReXConfig.cmake)

# Add mpi
find_package(MPI REQUIRED)
target_link_libraries(AMReX::amrex INTERFACE ${MPI_LIBRARIES})

endif()

target_link_libraries(HeatEquation PRIVATE AMReX::amrex)
Expand Down
4 changes: 0 additions & 4 deletions GuidedTutorials/HeatEquation_Simple/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ else()
message("-- Searching for AMReX install directory at ${AMReX_ROOT}")
find_package(AMReX PATHS ${AMReX_ROOT}/lib/cmake/AMReX/AMReXConfig.cmake)

# Add mpi
find_package(MPI REQUIRED)
target_link_libraries(AMReX::amrex INTERFACE ${MPI_LIBRARIES})

endif()

target_link_libraries(HeatEquation_Simple PRIVATE AMReX::amrex)
Expand Down
4 changes: 0 additions & 4 deletions GuidedTutorials/HelloWorld/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ else()
message("-- Searching for AMReX install directory at ${AMReX_ROOT}")
find_package(AMReX PATHS ${AMReX_ROOT}/lib/cmake/AMReX/AMReXConfig.cmake)

# Add mpi
find_package(MPI REQUIRED)
target_link_libraries(AMReX::amrex INTERFACE ${MPI_LIBRARIES})

endif()

target_link_libraries(HelloWorld PRIVATE AMReX::amrex)
4 changes: 0 additions & 4 deletions GuidedTutorials/MultiFab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ else()
message("-- Searching for AMReX install directory at ${AMReX_ROOT}")
find_package(AMReX PATHS ${AMReX_ROOT}/lib/cmake/AMReX/AMReXConfig.cmake)

# Add mpi
find_package(MPI REQUIRED)
target_link_libraries(AMReX::amrex INTERFACE ${MPI_LIBRARIES})

endif()

target_link_libraries(MultiFab PRIVATE AMReX::amrex)

0 comments on commit beca1f5

Please sign in to comment.