Skip to content

Commit c38c1dd

Browse files
committed
Tweak flibcpp internal function name
1 parent d09484e commit c38c1dd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ set(FLIBCPP_NAMESPACE Flibcpp::)
121121
# List of libraries exported by cmake/FlibcppConfig.cmake.in
122122
set(FLIBCPP_LIBRARIES)
123123

124-
function(swig_fortran_add_module name)
124+
function(flibcpp_add_module name)
125125
set(src_file "${FLIBCPP_INTERFACE_DIR}/${name}.i")
126126
# We're using C++
127127
set_property(SOURCE "${src_file}" PROPERTY CPLUSPLUS ON)
@@ -195,7 +195,7 @@ function(swig_fortran_add_module name)
195195
endfunction()
196196

197197
# 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}")
199199

200200
# Also install 'import_flc' if using SWIG
201201
if (FLIBCPP_USE_SWIG)
@@ -205,16 +205,16 @@ if (FLIBCPP_USE_SWIG)
205205
)
206206
endif()
207207

208-
swig_fortran_add_module(flc_algorithm)
208+
flibcpp_add_module(flc_algorithm)
209209
target_link_libraries(flc_algorithm flc_random flc)
210210

211-
swig_fortran_add_module(flc_random)
211+
flibcpp_add_module(flc_random)
212212
target_link_libraries(flc_random flc)
213213

214-
swig_fortran_add_module(flc_string)
214+
flibcpp_add_module(flc_string)
215215
target_link_libraries(flc_string flc)
216216

217-
swig_fortran_add_module(flc_vector)
217+
flibcpp_add_module(flc_vector)
218218
target_link_libraries(flc_vector flc flc_string)
219219

220220
#---------------------------------------------------------------------------#

0 commit comments

Comments
 (0)