Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed unused include_* directories in install #82

Merged
merged 1 commit into from
Jan 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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