@@ -121,7 +121,7 @@ set(FLIBCPP_NAMESPACE Flibcpp::)
121
121
# List of libraries exported by cmake/FlibcppConfig.cmake.in
122
122
set (FLIBCPP_LIBRARIES )
123
123
124
- function (swig_fortran_add_module name )
124
+ function (flibcpp_add_module name )
125
125
set (src_file "${FLIBCPP_INTERFACE_DIR} /${name} .i" )
126
126
# We're using C++
127
127
set_property (SOURCE "${src_file} " PROPERTY CPLUSPLUS ON )
@@ -195,7 +195,7 @@ function(swig_fortran_add_module name)
195
195
endfunction ()
196
196
197
197
# Install primary flc module, compiling version info as well
198
- swig_fortran_add_module (flc "${FLIBCPP_VERSION_CPP} " )
198
+ flibcpp_add_module (flc "${FLIBCPP_VERSION_CPP} " )
199
199
200
200
# Also install 'import_flc' if using SWIG
201
201
if (FLIBCPP_USE_SWIG )
@@ -205,16 +205,16 @@ if (FLIBCPP_USE_SWIG)
205
205
)
206
206
endif ()
207
207
208
- swig_fortran_add_module (flc_algorithm )
208
+ flibcpp_add_module (flc_algorithm )
209
209
target_link_libraries (flc_algorithm flc_random flc )
210
210
211
- swig_fortran_add_module (flc_random )
211
+ flibcpp_add_module (flc_random )
212
212
target_link_libraries (flc_random flc )
213
213
214
- swig_fortran_add_module (flc_string )
214
+ flibcpp_add_module (flc_string )
215
215
target_link_libraries (flc_string flc )
216
216
217
- swig_fortran_add_module (flc_vector )
217
+ flibcpp_add_module (flc_vector )
218
218
target_link_libraries (flc_vector flc flc_string )
219
219
220
220
#---------------------------------------------------------------------------#
0 commit comments