Skip to content

Commit

Permalink
Merge pull request #11 from NOAA-EMC/feature/relocatable-install
Browse files Browse the repository at this point in the history
Make install relocatable
  • Loading branch information
kgerheiser authored Jun 24, 2020
2 parents e7b1c81 + 34620d2 commit 1c5cc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsrc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ add_library(${PROJECT_NAME}::${lib_name} ALIAS ${lib_name})
set_target_properties(${lib_name} PROPERTIES Fortran_MODULE_DIRECTORY ${module_dir})
target_include_directories(${lib_name} INTERFACE
$<BUILD_INTERFACE:${module_dir}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include>)
$<INSTALL_INTERFACE:include>)

install(DIRECTORY ${module_dir} DESTINATION ${CMAKE_INSTALL_PREFIX})

Expand Down

0 comments on commit 1c5cc6c

Please sign in to comment.