UseSWIG: Fix check for noproxy flag (#14990)
The check for this flag added by commit v3.0.0-rc1~284^2 (UseSWIG: Name python module according to swig flags, 2013-11-26) can get false positives on flags like "-noproxydel". Improve the check to match only "-noproxy". Suggested-by: Garth Wells <gnw20@cam.ac.uk>
This commit is contained in:
parent
55d6aa36a5
commit
e932ac9cad
|
@ -57,7 +57,7 @@ macro(SWIG_MODULE_INITIALIZE name language)
|
||||||
set(SWIG_MODULE_${name}_SWIG_LANGUAGE_FLAG "${swig_lowercase_language}")
|
set(SWIG_MODULE_${name}_SWIG_LANGUAGE_FLAG "${swig_lowercase_language}")
|
||||||
|
|
||||||
set(SWIG_MODULE_${name}_REAL_NAME "${name}")
|
set(SWIG_MODULE_${name}_REAL_NAME "${name}")
|
||||||
if (CMAKE_SWIG_FLAGS MATCHES "-noproxy")
|
if (";${CMAKE_SWIG_FLAGS};" MATCHES ";-noproxy;")
|
||||||
set (SWIG_MODULE_${name}_NOPROXY TRUE)
|
set (SWIG_MODULE_${name}_NOPROXY TRUE)
|
||||||
endif ()
|
endif ()
|
||||||
if("${SWIG_MODULE_${name}_LANGUAGE}" STREQUAL "UNKNOWN")
|
if("${SWIG_MODULE_${name}_LANGUAGE}" STREQUAL "UNKNOWN")
|
||||||
|
|
Loading…
Reference in New Issue