mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
UseSWIG: Fall back to empty PREFIX for unknown languages
Teach `SWIG_ADD_LIBRARY` to fall back to an empty library prefix for languages we don't explicitly define already. Suggested-by: Alan W. Irwin <irwin@beluga.phys.uvic.ca>
This commit is contained in:
1 parent
759c675212
commit
8ed663791b
1 file changed
+3
@@ -326,6 +326,9 @@ macro(SWIG_ADD_LIBRARY name)
|
||||
if (APPLE)
|
||||
set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES SUFFIX ".bundle")
|
||||
endif ()
|
||||
else()
|
||||
# assume empty prefix because we expect the module to be dynamically loaded
|
||||
set_target_properties (${SWIG_MODULE_${name}_REAL_NAME} PROPERTIES PREFIX "")
|
||||
endif ()
|
||||
endmacro()
|
||||
|
||||
|
||||
Reference in new issue
Block a user