Skip to content

Commit f68e28b

Browse files
committed
Fix backward yes/no logic of WOLFTPM_NO_LOCK_DEFAULT, and if check statement of WOLFTPM_NO_LOCK
1 parent 807ad9b commit f68e28b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ endif()
9292

9393
# Mutex locking
9494
if(WOLFTPM_SINGLE_THREADED)
95-
set(_WOLFTPM_NO_LOCK_DEFAULT "no")
96-
else()
9795
set(_WOLFTPM_NO_LOCK_DEFAULT "yes")
96+
else()
97+
set(_WOLFTPM_NO_LOCK_DEFAULT "no")
9898
endif()
9999
set(WOLFTPM_NO_LOCK "${_WOLFTPM_NO_LOCK_DEFAULT}" CACHE STRING
100100
"Disable thread mutex locking (default: ${_WOLFTPM_NO_LOCK_DEFAULT})")
101101
set_property(CACHE WOLFTPM_NO_LOCK
102102
PROPERTY STRINGS "yes;no")
103-
if(NOT WOLFTPM_NO_LOCK)
103+
if(WOLFTPM_NO_LOCK)
104104
list(APPEND WOLFTPM_DEFINITIONS
105105
"-DWOLFTPM_NO_LOCK")
106106
endif()

0 commit comments

Comments
 (0)