# These are used in other places in cmake
# If possible, they are updated by version.cmake
set(GIT_BUILD "false")
-set(CVC5_IS_RELEASE "false")
set(CVC5_VERSION "${CVC5_LAST_RELEASE}")
set(CVC5_FULL_VERSION "${CVC5_LAST_RELEASE}")
set(CVC5_GIT_INFO "")
# These are used in other places in cmake
# If possible, they are updated by version.cmake
set(GIT_BUILD "false")
-set(CVC5_IS_RELEASE "false")
set(CVC5_VERSION "${CVC5_LAST_RELEASE}")
set(CVC5_FULL_VERSION "${CVC5_LAST_RELEASE}")
set(CVC5_GIT_INFO "")
else()
# was run within the overall cmake project
# add target to update versioninfo.cpp at build time
- add_custom_target(gen-versioninfo
- BYPRODUCTS
+ add_custom_command(
+ OUTPUT
${CMAKE_BINARY_DIR}/src/base/versioninfo.cpp
COMMAND ${CMAKE_COMMAND}
-DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}
-DCMAKE_BINARY_DIR=${CMAKE_BINARY_DIR}
- -P ${PROJECT_SOURCE_DIR}/cmake/version.cmake)
+ -P ${PROJECT_SOURCE_DIR}/cmake/version.cmake
+ DEPENDS
+ ${PROJECT_SOURCE_DIR}/cmake/version-base.cmake
+ ${PROJECT_SOURCE_DIR}/cmake/version.cmake
+ )
+ add_custom_target(gen-versioninfo
+ DEPENDS ${CMAKE_BINARY_DIR}/src/base/versioninfo.cpp
+ )
endif()
# include basic version information
list(LENGTH VERSION_LIST VERSION_LIST_LENGTH)
endwhile()
- set(CVC5_VERSION "${GIT_LAST_TAG}-dev")
- set(CVC5_FULL_VERSION "${GIT_LAST_TAG}-dev.${GIT_COMMITS_SINCE_TAG}.${GIT_COMMIT}")
+ if(CVC5_IS_RELEASE)
+ set(CVC5_VERSION "${CVC5_VERSION}-modified")
+ set(CVC5_FULL_VERSION "${CVC5_FULL_VERSION}-modified")
+ else()
+ set(CVC5_VERSION "${GIT_LAST_TAG}-dev")
+ set(CVC5_FULL_VERSION "${GIT_LAST_TAG}-dev.${GIT_COMMITS_SINCE_TAG}.${GIT_COMMIT}")
+ endif()
set(CVC5_GIT_INFO "git ${GIT_COMMIT} on branch ${GIT_BRANCH}${GIT_DIRTY_MSG}")
endif()
endif()
${PROJECT_SOURCE_DIR}/src/*.cc
${PROJECT_SOURCE_DIR}/src/*.h
${PROJECT_SOURCE_DIR}/src/*.g)
-string(REPLACE ";" " " source_files_list "${source_files}")
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Debug_tags.h
const bool ::cvc5::Configuration::CVC5_IS_RELEASE = @CVC5_IS_RELEASE@;
const char* const ::cvc5::Configuration::CVC5_VERSION = "@CVC5_VERSION@";
const char* const ::cvc5::Configuration::CVC5_FULL_VERSION = "@CVC5_FULL_VERSION@";
-const char* const ::cvc5::Configuration::CVC5_GIT_INFO = "@CVC5_GIT_INFO@";
\ No newline at end of file
+const char* const ::cvc5::Configuration::CVC5_GIT_INFO = "@CVC5_GIT_INFO@";