From a9e297e4764faa53b146de1b0c3ed82e2632e42c Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 9 Jan 2022 23:31:59 +0100 Subject: [PATCH] Fix handling of ifdef/ifndef --- cmake/utils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/utils.cmake b/cmake/utils.cmake index c5ee65384..56c1cb060 100644 --- a/cmake/utils.cmake +++ b/cmake/utils.cmake @@ -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)