fix cmake regression introduced in bfe21aee
Before calling list(REMOVE_ITEM ...) check if the variable exists, if it doesn't cmake throws an error.
This commit is contained in:
parent
bfe21aee3e
commit
6cbad61f36
|
@ -66,7 +66,9 @@ function(normalize_wx_paths)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
macro(cleanup_wx_vars)
|
macro(cleanup_wx_vars)
|
||||||
list(REMOVE_ITEM wxWidgets_CXX_FLAGS -fpermissive)
|
if(wxWidgets_CXX_FLAGS)
|
||||||
|
list(REMOVE_ITEM wxWidgets_CXX_FLAGS -fpermissive)
|
||||||
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
if(CMAKE_PREFIX_PATH)
|
if(CMAKE_PREFIX_PATH)
|
||||||
|
|
Loading…
Reference in New Issue