You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2022/09/18 08:46:19 UTC
[logging-log4cxx] branch next_stable updated: Fix thread_local detection using some cmake versions (e.g. 3.16)
This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch next_stable
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
The following commit(s) were added to refs/heads/next_stable by this push:
new eb30ac62 Fix thread_local detection using some cmake versions (e.g. 3.16)
eb30ac62 is described below
commit eb30ac626480f9e2d8c9c23439436a52b6e567f1
Author: Stephen Webb <st...@sabreautonomous.com.au>
AuthorDate: Sun Sep 18 18:41:43 2022 +1000
Fix thread_local detection using some cmake versions (e.g. 3.16)
---
src/main/include/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/include/CMakeLists.txt b/src/main/include/CMakeLists.txt
index a2558309..caba4629 100644
--- a/src/main/include/CMakeLists.txt
+++ b/src/main/include/CMakeLists.txt
@@ -154,7 +154,7 @@ foreach(varName
continue()
elseif(${varName} EQUAL 1)
continue()
- elseif("${varName}" STREQUAL "ON" OR "${varName}" STREQUAL "TRUE")
+ elseif(${varName} STREQUAL "ON" OR ${varName} STREQUAL "TRUE")
set(${varName} 1 )
else()
set(${varName} 0 )