From 2931b4e0e839a2224a310bf66caaba09d3185f8f Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Fri, 6 Jan 2023 20:41:25 +0100 Subject: [PATCH] removed unused include_* directories in install --- src/CMakeLists.txt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a146ba0..1f68d56 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -38,7 +38,6 @@ endif() set(kinds "4" "d") foreach(kind ${kinds}) set(lib_name ${PROJECT_NAME}_${kind}) - set(module_dir ${CMAKE_CURRENT_BINARY_DIR}/include_${kind}) # Create object library. The object library will be used to build # static and shared libraries. @@ -75,13 +74,7 @@ foreach(kind ${kinds}) endif() set_target_properties(${lib_name}_objlib PROPERTIES COMPILE_FLAGS "${BUILD_FLAGS}") - set_target_properties(${lib_name}_objlib PROPERTIES Fortran_MODULE_DIRECTORY ${module_dir}) - target_include_directories(${lib_name}_objlib PUBLIC - $ - $) - - install(DIRECTORY ${module_dir} DESTINATION ${CMAKE_INSTALL_PREFIX}) endforeach() install(