Commit 38ffcedd authored by Marc Chevrier's avatar Marc Chevrier Committed by Brad King

UseSWIG: reintroduce legacy target name management

Fixes: #18140
parent 51e7d415
This diff is collapsed.
...@@ -58,6 +58,7 @@ if(${language} MATCHES lua) ...@@ -58,6 +58,7 @@ if(${language} MATCHES lua)
set(SWIG_LANG_LIBRARIES ${LUA_LIBRARIES}) set(SWIG_LANG_LIBRARIES ${LUA_LIBRARIES})
endif() endif()
set(UseSWIG_TARGET_NAME_PREFERENCE STANDARD)
unset(CMAKE_SWIG_FLAGS) unset(CMAKE_SWIG_FLAGS)
set (CMAKE_INCLUDE_CURRENT_DIR ON) set (CMAKE_INCLUDE_CURRENT_DIR ON)
......
...@@ -16,6 +16,7 @@ else() ...@@ -16,6 +16,7 @@ else()
set (PS ":") set (PS ":")
endif() endif()
set(UseSWIG_TARGET_NAME_PREFERENCE STANDARD)
set (UseSWIG_MODULE_VERSION 2) set (UseSWIG_MODULE_VERSION 2)
unset(CMAKE_SWIG_FLAGS) unset(CMAKE_SWIG_FLAGS)
......
...@@ -19,6 +19,7 @@ else() ...@@ -19,6 +19,7 @@ else()
set (PS ":") set (PS ":")
endif() endif()
set(UseSWIG_TARGET_NAME_PREFERENCE STANDARD)
unset(CMAKE_SWIG_FLAGS) unset(CMAKE_SWIG_FLAGS)
set_property(SOURCE "../example.i" PROPERTY CPLUSPLUS ON) set_property(SOURCE "../example.i" PROPERTY CPLUSPLUS ON)
......
...@@ -17,6 +17,7 @@ else() ...@@ -17,6 +17,7 @@ else()
set (PS ":") set (PS ":")
endif() endif()
set(UseSWIG_TARGET_NAME_PREFERENCE STANDARD)
unset(CMAKE_SWIG_FLAGS) unset(CMAKE_SWIG_FLAGS)
set_property(SOURCE "../example.i" PROPERTY CPLUSPLUS ON) set_property(SOURCE "../example.i" PROPERTY CPLUSPLUS ON)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment