Fix handling of ifdef/ifndef

This commit is contained in:
Martin Kroeker
2022-01-09 23:31:59 +01:00
committed by GitHub
parent 499ae5e8f7
commit a9e297e476

View File

@@ -125,7 +125,7 @@ macro(ParseMakefileVars MAKEFILE_IN)
if (NOT "${line_match}" STREQUAL "")
#message(STATUS "${CMAKE_MATCH_1} first: ${CMAKE_MATCH_2}")
set (ElseSeen 0)
if (DEFINED ${CMAKE_MATCH_2})
if (${CMAKE_MATCH_2})
if (${CMAKE_MATCH_1} STREQUAL "ifdef")
#message (STATUS "condition is true")
set (IfElse 1)