Skip to content

Commit bba3995

Browse files
authored
Merge pull request #7834 from oltolm/cmake_fix
cmake: fix parsing WOLFSSL_DEFINITIONS
2 parents d351430 + ea307c7 commit bba3995

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)