Skip to content

Commit

Permalink
removed unused include_* directories in install
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Jan 6, 2023
1 parent 3573b5b commit 2931b4e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
$<BUILD_INTERFACE:${module_dir}>
$<INSTALL_INTERFACE:include_${kind}>)

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

install(
Expand Down

0 comments on commit 2931b4e

Please sign in to comment.