Fix condition in ogre-config
The previous form of if...else...else isn't supported anymore in recent CMake
versions
Tested-by: ngargaud
@@ -13,7 +13,7 @@ function(get_preprocessor_entry VARIABLE)
string(REGEX MATCH "# *define +${VARIABLE} +((\"([^\n]*)\")|([^ \n]*))" _there "${ARGN}")
if (CMAKE_MATCH_3)
set(${VARIABLE} "${CMAKE_MATCH_3}" PARENT_SCOPE)
- else(CMAKE_MATCH_4)
+ elseif(CMAKE_MATCH_4)
set(${VARIABLE} "${CMAKE_MATCH_4}" PARENT_SCOPE)
else()
set(${VARIABLE} "0" PARENT_SCOPE)
