summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-02-10 11:08:34 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2023-02-13 10:27:10 +0000
commitd63f1fe2457edbcdae7e20f1c1e4b75fbff8354e (patch)
tree0f4507bee474c5801a229f2eb5aaa8858514aab0 /cmake
parentf72707872b036f1283537b248f0199ac193c6933 (diff)
downloadlibgit2-d63f1fe2457edbcdae7e20f1c1e4b75fbff8354e.tar.gz
cmake: support older cmakes
Diffstat (limited to 'cmake')
-rw-r--r--cmake/ExperimentalFeatures.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/ExperimentalFeatures.cmake b/cmake/ExperimentalFeatures.cmake
index 57a66e68d..7eff40bdb 100644
--- a/cmake/ExperimentalFeatures.cmake
+++ b/cmake/ExperimentalFeatures.cmake
@@ -13,7 +13,7 @@ if(EXPERIMENTAL_SHA256)
set(EXPERIMENTAL 1)
set(GIT_EXPERIMENTAL_SHA256 1)
- add_compile_definitions(GIT_EXPERIMENTAL_SHA256)
+ add_definitions(-DGIT_EXPERIMENTAL_SHA256=1)
else()
add_feature_info("SHA256 API" OFF "experimental SHA256 APIs")
endif()