summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-17 13:20:16 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-11-17 13:20:23 (GMT)
commit08f5e09f9fe412120c309d64299841690016398d (patch)
treeea33c77ee03c0e5cd23557f0242b1cd8aec0188b
parent25fcc7e3de703de75a9d0bbca1d9bc910b05deaa (diff)
parent342b1b8a69d54512a208175a85d844ecce69e032 (diff)
downloadCMake-08f5e09f9fe412120c309d64299841690016398d.zip
CMake-08f5e09f9fe412120c309d64299841690016398d.tar.gz
CMake-08f5e09f9fe412120c309d64299841690016398d.tar.bz2
Merge topic 'UseSWIG-csharp-dllimport'
342b1b8a69 UseSWIG: ensure generated CSharp source code is portable. Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8973
-rw-r--r--Modules/UseSWIG.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index cece973..f264fb6 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -657,7 +657,7 @@ function(SWIG_ADD_SOURCE_TO_MODULE name outfiles infile)
if(NOT ("-dllimport" IN_LIST swig_source_file_flags OR "-dllimport" IN_LIST SWIG_MODULE_${name}_EXTRA_FLAGS))
# This makes sure that the name used in the generated DllImport
# matches the library name created by CMake
- list (APPEND SWIG_MODULE_${name}_EXTRA_FLAGS "-dllimport" "$<TARGET_FILE_PREFIX:${target_name}>$<TARGET_FILE_BASE_NAME:${target_name}>")
+ list (APPEND SWIG_MODULE_${name}_EXTRA_FLAGS "-dllimport" "$<TARGET_FILE_BASE_NAME:${target_name}>")
endif()
endif()
if (SWIG_MODULE_${name}_LANGUAGE STREQUAL "PYTHON" AND NOT SWIG_MODULE_${name}_NOPROXY)