diff options
author | Patrick Steinhardt <ps@pks.im> | 2020-02-24 21:07:34 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2020-02-24 21:17:27 +0100 |
commit | d8e71cb2b25183a1c6f9b68e31d014ce43160e5a (patch) | |
tree | bac223f8f96d3509654fb30c90cd9876b0babb63 | |
parent | 41b6d30c5fbde4d3b7ccd44028d98969afecfee1 (diff) | |
download | libgit2-d8e71cb2b25183a1c6f9b68e31d014ce43160e5a.tar.gz |
cmake: fix ENABLE_TRACE parameter being too strict
In order to check whether tracing support should be turned on, we check
whether ENABLE_TRACE equals "ON". This is being much too strict, as
CMake will also treat "on", "true", "yes" and others as true-ish, but
passing them will disable tracing support now.
Fix the issue by simply removing the STREQUAL, which will cause CMake to
do the right thing automatically.
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9e4a41a61..de24b975a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -28,7 +28,7 @@ SET(LIB_INSTALL_DIR lib CACHE PATH "Where to install libraries to.") SET(INCLUDE_INSTALL_DIR include CACHE PATH "Where to install headers to.") # Enable tracing -IF (ENABLE_TRACE STREQUAL "ON") +IF(ENABLE_TRACE) SET(GIT_TRACE 1) ENDIF() ADD_FEATURE_INFO(tracing GIT_TRACE "tracing support") |