Commit ff320b80 authored by Thibaut ROMAIN's avatar Thibaut ROMAIN
Browse files

BUG: Swig application name prefix is deprecated since cmake 3.13

parent ff8a5ceb
Pipeline #8726 failed with stages
in 72 minutes and 54 seconds
......@@ -26,11 +26,9 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR})
set_source_files_properties ( ../otbApplication.i PROPERTIES CPLUSPLUS ON )
# Get target name
set(extension_target _otbApplication)
if(POLICY CMP0078)
cmake_policy(GET CMP0078 swig_target_name_policy)
if (swig_target_name_policy STREQUAL "NEW")
set(extension_target otbApplication)
endif()
if(CMAKE_VERSION VERSION_GREATER 3.13.0)
#UseSwig now defaults its target name to the name of the .i file
set(extension_target otbApplication)
endif()
# Run swig
set(CMAKE_SWIG_FLAGS ${CMAKE_SWIG_GLOBAL_FLAGS})
......
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