FindwxWidgets.cmake: Use lowercase for CMake builtins

This commit is contained in:
Simon Richter 2016-02-15 18:50:48 +01:00
parent 6a7fa8950c
commit b66a584a8a
1 changed files with 3 additions and 3 deletions

View File

@ -562,7 +562,7 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
# If release config selected, and both release/debug exist. # If release config selected, and both release/debug exist.
if(WX_${wxWidgets_CONFIGURATION}d_FOUND) if(WX_${wxWidgets_CONFIGURATION}d_FOUND)
OPTION(wxWidgets_USE_REL_AND_DBG option(wxWidgets_USE_REL_AND_DBG
"Use release and debug configurations?" TRUE) "Use release and debug configurations?" TRUE)
set(WX_USE_REL_AND_DBG ${wxWidgets_USE_REL_AND_DBG}) set(WX_USE_REL_AND_DBG ${wxWidgets_USE_REL_AND_DBG})
else() else()
@ -672,7 +672,7 @@ else()
) )
string(TOUPPER ${_OPT_NAME} _UPPER_OPT_NAME) string(TOUPPER ${_OPT_NAME} _UPPER_OPT_NAME)
if(_wx_result_yes EQUAL 0 AND _wx_result_no EQUAL 0) if(_wx_result_yes EQUAL 0 AND _wx_result_no EQUAL 0)
OPTION(wxWidgets_USE_${_UPPER_OPT_NAME} option(wxWidgets_USE_${_UPPER_OPT_NAME}
${_OPT_HELP} ${wxWidgets_DEFAULT_${_UPPER_OPT_NAME}}) ${_OPT_HELP} ${wxWidgets_DEFAULT_${_UPPER_OPT_NAME}})
else() else()
# If option exists (already in cache), force to available one. # If option exists (already in cache), force to available one.
@ -1073,7 +1073,7 @@ function(WXWIDGETS_ADD_RESOURCES _outfiles)
# - short option scanning # - short option scanning
list(FIND rc_options -o index) list(FIND rc_options -o index)
if(NOT index EQUAL -1) if(NOT index EQUAL -1)
MATH(EXPR filename_index "${index} + 1") math(EXPR filename_index "${index} + 1")
list(GET rc_options ${filename_index} outfile) list(GET rc_options ${filename_index} outfile)
#list(REMOVE_AT rc_options ${index} ${filename_index}) #list(REMOVE_AT rc_options ${index} ${filename_index})
endif() endif()