Skip to content

Commit

Permalink
Fix to cmake that makes driver modules private
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrows committed Nov 7, 2023
1 parent 68e96cc commit 62253a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/programs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ foreach( prec sp dp )
# $<INSTALL_INTERFACE:include/ectrans>
# $<INSTALL_INTERFACE:include>
# PRIVATE_INCLUDES ${PROJECT_SOURCE_DIR}/src/trans/external
PUBLIC_LIBS fiat parkind_${prec} trans_${prec}
PUBLIC_LIBS fiat
PRIVATE_LIBS parkind_${prec} trans_${prec}
)

ectrans_target_fortran_module_directory(
TARGET trans_${prec}
MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/module/trans_${prec}
INSTALL_DIRECTORY module/trans_${prec}
TARGET driver_${prec}
MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/module/driver_${prec}
INSTALL_DIRECTORY module/driver_${prec}
)

ecbuild_add_executable(TARGET ectrans-benchmark-uni-${prec}
Expand Down

0 comments on commit 62253a0

Please sign in to comment.