diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2016-07-21 11:22:42 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2016-07-21 11:22:42 +0300 |
commit | 7497f1f3279882f8ce39cd000b45ead1819b5f31 (patch) | |
tree | 855b5b71a5c91dfad4336bb162376c7b4a4021d6 /CMakeLists.txt | |
parent | 30e3df2e87256b22f1dc62d43a9fd84e2736341b (diff) |
Stop regening revision.hpp if I am a dependency
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 07084610..50d867e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,8 +25,6 @@ include(CTest) find_boostish_library(boost-lite 1.0 REQUIRED) find_boostish_library(boost--outcome 1.0 REQUIRED) -# Update this header file with the current git SHA and last timestamp -UpdateRevisionHppFromGit("${CMAKE_CURRENT_SOURCE_DIR}/include/boost/afio/revision.hpp") # Make the standard static and shared libraries, and if supported by this compiler, C++ modules # for both static and shared libraries as well. For the non-C++ module variants, makes the # interface headers into precompiled headers. Only builds all of them if this is the topmost @@ -34,6 +32,10 @@ UpdateRevisionHppFromGit("${CMAKE_CURRENT_SOURCE_DIR}/include/boost/afio/revisio include(BoostLiteMakeLibrary) # Make an interface only library so dependent CMakeLists can bring in this header-only library include(BoostLiteMakeHeaderOnlyLibrary) +if(NOT PROJECT_IS_DEPENDENCY) + # Update this header file with the current git SHA and last timestamp + UpdateRevisionHppFromGit("${CMAKE_CURRENT_SOURCE_DIR}/include/boost/afio/revision.hpp") +endif() # Set the standard definitions for these libraries and bring in the all_* helper functions include(BoostLiteApplyDefaultDefinitions) |