diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ac9b66..d6d0cd2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ if(NOT BUILD_TESTS) set_target_properties( ${FORTUTF} PROPERTIES - Fortran_MODULE_DIRECTORY "${Fortran_MODULE_DIRECTORY}" + Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/modules ) endif() diff --git a/cmake/fortutf.cmake b/cmake/fortutf.cmake index 6e2afb5..83f45f2 100644 --- a/cmake/fortutf.cmake +++ b/cmake/fortutf.cmake @@ -118,7 +118,7 @@ function(FortUTF_Find_Tests) set_target_properties( ${FORTUTF} PROPERTIES - Fortran_MODULE_DIRECTORY "${Fortran_MODULE_DIRECTORY}" + Fortran_MODULE_DIRECTORY ${Fortran_MODULE_DIRECTORY} ) endif()