Skip to content

Commit 1fad77b

Browse files
committed
feat: remove case if first line is variable in fail function
1 parent ecab3dc commit 1fad77b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cmake/Assertion.cmake

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ endfunction()
2929
# For each given line, if it is a variable, it will be expanded and indented by
3030
# 2 spaces.
3131
macro(fail FIRST_LINE)
32-
if(DEFINED "${FIRST_LINE}")
33-
set(MESSAGE "${${FIRST_LINE}}")
34-
else()
35-
set(MESSAGE "${FIRST_LINE}")
36-
endif()
32+
set(MESSAGE "${FIRST_LINE}")
3733

3834
foreach(LINE IN ITEMS ${ARGN})
3935
if(DEFINED "${LINE}")

0 commit comments

Comments
 (0)