Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 323f700

Browse files
Merge pull request #511 from awvwgk/module-dir
Correctly set CMAKE_INSTALL_MODULEDIR cache variable
2 parents 86ed2f3 + 0431049 commit 323f700

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

‎config/CMakeLists.txt‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# SPDX-Identifier: MIT
22

3-
option(
4-
CMAKE_INSTALL_MODULEDIR
5-
"Directory in prefix to install generated module files"
6-
"${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/${CMAKE_Fortran_COMPILER_ID}-${CMAKE_Fortran_COMPILER_VERSION}"
7-
)
3+
if(NOT DEFINED CMAKE_INSTALL_MODULEDIR)
4+
set(
5+
CMAKE_INSTALL_MODULEDIR
6+
"${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/${CMAKE_Fortran_COMPILER_ID}-${CMAKE_Fortran_COMPILER_VERSION}"
7+
CACHE
8+
STRING
9+
"Directory in prefix to install generated module files"
10+
)
11+
endif()
812

913
# Export a pkg-config file
1014
configure_file(

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /