We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 75938ca + f68e28b commit cb1e647Copy full SHA for cb1e647
CMakeLists.txt
@@ -91,11 +91,16 @@ if(WOLFTPM_SINGLE_THREADED)
91
endif()
92
93
# Mutex locking
94
-set(WOLFTPM_NO_LOCK "no" CACHE STRING
95
- "Enable thread mutex locking (default: enabled)")
+if(WOLFTPM_SINGLE_THREADED)
+ set(_WOLFTPM_NO_LOCK_DEFAULT "yes")
96
+else()
97
+ set(_WOLFTPM_NO_LOCK_DEFAULT "no")
98
+endif()
99
+set(WOLFTPM_NO_LOCK "${_WOLFTPM_NO_LOCK_DEFAULT}" CACHE STRING
100
+ "Disable thread mutex locking (default: ${_WOLFTPM_NO_LOCK_DEFAULT})")
101
set_property(CACHE WOLFTPM_NO_LOCK
102
PROPERTY STRINGS "yes;no")
-if(NOT WOLFTPM_NO_LOCK)
103
+if(WOLFTPM_NO_LOCK)
104
list(APPEND WOLFTPM_DEFINITIONS
105
"-DWOLFTPM_NO_LOCK")
106
0 commit comments