File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ if (FLIBCPP_FORTRAN_STD AND NOT FLIBCPP_FORTRAN_STD STREQUAL "none")
48
48
"FLIBCPP_FORTRAN_STD=${FLIBCPP_FORTRAN_STD} . Configure with "
49
49
"the FFLAGS environment variable or explicitly specify "
50
50
"CMAKE_Fortran_FLAGS" )
51
- set (_FLIBCPP_STD_FLAGS "none" CACHE FORCE STRING "" )
51
+ set (FLIBCPP_FORTRAN_STD "none" CACHE FORCE STRING "" )
52
52
endif ()
53
53
endif ()
54
54
@@ -84,6 +84,8 @@ if (FLIBCPP_USE_SWIG AND SWIG_FOUND)
84
84
cmake_policy (SET CMP0086 "NEW" )
85
85
include (UseSWIG )
86
86
endif ()
87
+ set (FLIBCPP_SWIG_EXECUTABLE "${SWIG_EXECUTABLE} " )
88
+ set (FLIBCPP_SWIG_DIR "${SWIG_DIR} " )
87
89
else ()
88
90
set (FLIBCPP_USE_SWIG FALSE )
89
91
endif ()
@@ -102,7 +104,7 @@ set(FLIBCPP_INTERFACE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include")
102
104
set (FLIBCPP_GENERATE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /src" )
103
105
set (FLIBCPP_INSTALL_CONFIGDIR "${CMAKE_INSTALL_LIBDIR} /cmake/Flibcpp" )
104
106
set (FLIBCPP_INSTALL_MODULEDIR "${CMAKE_INSTALL_INCLUDEDIR} " )
105
- set (FLIBCPP_NAMESPACE Flibcpp:: )
107
+ set (FLIBCPP_NAMESPACE " Flibcpp::" )
106
108
107
109
# List of libraries exported by cmake/FlibcppConfig.cmake.in
108
110
set (FLIBCPP_LIBRARIES )
@@ -158,6 +160,7 @@ function(flibcpp_add_module name)
158
160
cxx_std_11
159
161
)
160
162
if (_FLIBCPP_STD_FLAGS )
163
+ # Compile Fortran code with a particular standard
161
164
target_compile_options (${name}
162
165
PUBLIC $< $< COMPILE_LANGUAGE:Fortran> :${_FLIBCPP_STD_FLAGS} >
163
166
)
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if (NOT SWIG_CHECKED_FORTRAN)
16
16
if (NOT SWIG_help_output MATCHES "Fortran" )
17
17
message (FATAL_ERROR "This version of SWIG does not support Fortran "
18
18
"wrapping. Please install the version from "
19
- "https://github.com/sethrj /swig" )
19
+ "https://github.com/swig-fortran /swig" )
20
20
endif ()
21
21
set (SWIG_CHECKED_FORTRAN TRUE CACHE INTERNAL "" )
22
22
endif ()
Original file line number Diff line number Diff line change 9
9
10
10
set (Flibcpp_LIBRARIES @FLIBCPP_LIBRARIES@ )
11
11
12
- set (Flibcpp_BUILD_SHARED_LIBS @BUILD_SHARED_LIBS@ )
12
+ set (FLIBCPP_BUILD_SHARED_LIBS @BUILD_SHARED_LIBS@ )
13
+ set (FLIBCPP_USE_SWIG @FLIBCPP_USE_SWIG@ )
14
+ set (FLIBCPP_FORTRAN_STD @FLIBCPP_FORTRAN_STD@ )
15
+ set (FLIBCPP_SWIG_EXECUTABLE @FLIBCPP_SWIG_EXECUTABLE@ )
16
+ set (FLIBCPP_SWIG_DIR @FLIBCPP_SWIG_DIR@ )
13
17
14
- if (NOT "@Flibcpp_BUILD_SHARED_LIBS@" )
18
+ if (NOT FLIBCPP_BUILD_SHARED_LIBS )
15
19
# Downstream libraries must find and link to the C++ runtimes themselves since
16
20
# they can't use the shared library dependencies
17
21
enable_language (CXX )
You can’t perform that action at this time.
0 commit comments