diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-06 16:38:11 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-09 15:17:19 +0000 |
commit | c91d3d699fc6ffed2abd3146186831dcc863545d (patch) | |
tree | 4911456744a1dd767cc42ee8bdf17d66d92f1c7a | |
parent | a7872ec47944b91b3aae798a43a4ab96f63346fd (diff) | |
download | libgit2-c91d3d699fc6ffed2abd3146186831dcc863545d.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.
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/CMakeLists.txt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ff376cc3..f7a653725 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,10 +103,6 @@ include(DefaultCFlags) # Compiler / linker flags # -if(DEPRECATE_HARD) - add_definitions(-DGIT_DEPRECATE_HARD) -endif() - if(NOT CMAKE_CONFIGURATION_TYPES) # Build Debug by default if(NOT CMAKE_BUILD_TYPE) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index de8beefd8..e5c9630b0 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() |