diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-06 16:38:11 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 15:56:10 -0500 |
| commit | 7b527c12bc07d61fb6d2f0d7bb0b35815dbae49d (patch) | |
| tree | 7753c468edaa650db908ff680feab2d8fb64cf92 /src | |
| parent | 9f37457e17f1b1f9e899b757df3413180719005f (diff) | |
| download | libgit2-7b527c12bc07d61fb6d2f0d7bb0b35815dbae49d.tar.gz | |
cmake: move deprecation definition to src/
There's no need to add the deprecation at the top-level. Our tests add
deprecation explicitly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eed04f8ee..e7801165e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,6 +2,10 @@ add_library(git2internal OBJECT) set_target_properties(git2internal PROPERTIES C_STANDARD 90) +if(DEPRECATE_HARD) + add_definitions(-DGIT_DEPRECATE_HARD) +endif() + if(DEBUG_POOL) set(GIT_DEBUG_POOL 1) endif() |
