Skip to content

Commit 226caa2

Browse files
authored
Merge pull request #7 from intercreate/fix/#6/set-definition-string
fix: set_definition_string (closes #6)
2 parents 9fd06fb + 2c4da3f commit 226caa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ic_utils.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ macro(set_definition_string name value)
3939
)
4040
endif()
4141

42-
if(DEFINED name)
42+
if(DEFINED name AND NOT "${${name}}" STREQUAL "")
4343
message(FATAL_ERROR "${name} is already defined!")
4444
endif()
4545

0 commit comments

Comments
 (0)