Skip to content

Commit

Permalink
CMAKE_INSTALL_PREFIX was incorrectly being prepended to the install d…
Browse files Browse the repository at this point in the history
…irectory for the ftnmod folder which caused it to be in the wrong place when importing OpenFAST as a library in AMR-Wind
  • Loading branch information
deslaughter committed Nov 4, 2024
1 parent 6a63db7 commit bbded1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ endforeach(IDIR IN ITEMS ${OPENFAST_MODULES})
add_subdirectory(glue-codes)

# Install fortran .mod files also to installation directory
install(DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/
DESTINATION ${CMAKE_INSTALL_PREFIX}/include/openfast/
install(DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
DESTINATION include/openfast/
FILES_MATCHING PATTERN "*.mod"
)

Expand Down

0 comments on commit bbded1b

Please sign in to comment.