diff --git a/CMakeLists.txt b/CMakeLists.txt index d926067..43d2ffc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,6 @@ set(META_VERSION_PATCH "0") set(META_VERSION_REVISION "${GIT_REV}") set(META_VERSION "${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH}") set(META_NAME_VERSION "${META_PROJECT_NAME} v${META_VERSION} (${META_VERSION_REVISION})") -set(META_CMAKE_INIT_SHA "${GIT_REV}") # cmake-format: on string(MAKE_C_IDENTIFIER ${META_PROJECT_NAME} META_PROJECT_ID) @@ -159,7 +158,7 @@ if(ASAP_BUILD_TESTS) include(GoogleSanitizers) include(CodeCoverage) # Enable this target when the project has test cases - # asap_add_code_coverage_all_targets() + asap_add_code_coverage_all_targets() include(Valgrind) cpmaddpackage( diff --git a/tools/version-info/CMakeLists.txt b/tools/version-info/CMakeLists.txt index 94a238b..d30acf2 100644 --- a/tools/version-info/CMakeLists.txt +++ b/tools/version-info/CMakeLists.txt @@ -60,10 +60,12 @@ target_include_directories( # Run executable test # ------------------------------------------------------------------------------ -add_test( - NAME version-info - COMMAND ${MODULE_TARGET_NAME} - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) +if(ASAP_BUILD_TESTS) + add_test( + NAME version-info + COMMAND ${MODULE_TARGET_NAME} + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) +endif() # ============================================================================== # Deployment instructions