File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -137,14 +137,15 @@ set(FLIBCPP_NAMESPACE Flibcpp::)
137
137
set (FLIBCPP_LIBRARIES )
138
138
139
139
function (flibcpp_add_module name )
140
- set (src_file "${FLIBCPP_INTERFACE_DIR} /${name} .i" )
141
- # We're using C++
142
- set_property (SOURCE "${src_file} " PROPERTY CPLUSPLUS ON )
143
- # We need to include the source directory
144
- set_property (SOURCE "${src_file} " PROPERTY USE_TARGET_INCLUDE_DIRECTORIES ON )
145
-
146
140
if (FLIBCPP_USE_SWIG )
147
141
# SWIG is available; actually generate the library dynamically.
142
+
143
+ set (src_file "${FLIBCPP_INTERFACE_DIR} /${name} .i" )
144
+ # We're using C++
145
+ set_property (SOURCE "${src_file} " PROPERTY CPLUSPLUS ON )
146
+ # We need to include the source directory
147
+ set_property (SOURCE "${src_file} " PROPERTY USE_TARGET_INCLUDE_DIRECTORIES ON )
148
+
148
149
# Create the library
149
150
swig_add_library (${name}
150
151
LANGUAGE Fortran
You can’t perform that action at this time.
0 commit comments