From bbded1bf7484f23781730f3bc91527fad4a51293 Mon Sep 17 00:00:00 2001 From: Derek Slaughter Date: Mon, 4 Nov 2024 14:05:24 +0000 Subject: [PATCH] CMAKE_INSTALL_PREFIX was incorrectly being prepended to the install directory for the ftnmod folder which caused it to be in the wrong place when importing OpenFAST as a library in AMR-Wind --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2dc54651d..3299153263 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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" )