diff options
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | Readme.md | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 50d867e4..afa8328c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,8 @@ ParseProjectVersionFromHpp("${CMAKE_CURRENT_SOURCE_DIR}/include/boost/afio/versi project(afio VERSION ${VERSIONSTRING} LANGUAGES CXX) # Also set a *cmake* namespace for this project set(PROJECT_NAMESPACE boost--) +# This file should be updated with the last git SHA next commit +UpdateRevisionHppFromGit("${CMAKE_CURRENT_SOURCE_DIR}/include/boost/afio/revision.hpp") # Bring in CTest support include(CTest) # Find my library dependencies @@ -32,10 +34,6 @@ find_boostish_library(boost--outcome 1.0 REQUIRED) 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) @@ -7,8 +7,12 @@ v2 rewrite. You can view its documentation at https://ned14.github.io/boost.afio CMake todos: - Static library edition appears to not be encoding extended error code detail? -- Precompiled header's custom target causes a PCH rebuild every build run, which -sucks and should be fixed. + - Add a unit test! +- CDash needs to display all the unit test results ideally + - ctest should combine the XML from the tests into a single XML + - ctest also needs to figure out if these binaries are using CATCH +- Make updating revision.hpp a non-default target and have the pre-commit git +hook call it Later: - Each test runner needs to be compiled into many sanitising build variants |