Skip to content

Commit ea307c7

Browse files
committed
cmake: fix parsing WOLFSSL_DEFINITIONS
1 parent 039853c commit ea307c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2335,7 +2335,7 @@ endif()
23352335

23362336
foreach(DEF IN LISTS WOLFSSL_DEFINITIONS)
23372337
string(REGEX MATCH "^(-D)?([^=]+)(=(.*))?$" DEF_MATCH ${DEF})
2338-
if (DEFINED CMAKE_MATCH_4)
2338+
if (NOT "${CMAKE_MATCH_4}" STREQUAL "")
23392339
set(${CMAKE_MATCH_2} ${CMAKE_MATCH_4})
23402340
# message("set(${CMAKE_MATCH_2} ${CMAKE_MATCH_4})")
23412341
else()

0 commit comments

Comments
 (0)