cmake: Allow overriding package version

This commit is contained in:
Ryan Pavlik authored and Jakob Bornecrantz committed 2021-10-28 11:35:47 +00:00
1 parent 1a556740d5
commit 86a708cee5
1 file changed
+4 -2
+4 -2
View File
@@ -27,8 +27,10 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/sanitizers")
include(CMakeDependentOption)
include(SPIR-V)
include(GNUInstallDirs)
include(GetGitRevisionDescription)
git_describe(GIT_DESC "--always")
if(NOT GIT_DESC)
include(GetGitRevisionDescription)
git_describe(GIT_DESC "--always")
endif()
if(NOT ${CMAKE_VERSION} VERSION_LESS 3.9)
include(CheckIPOSupported)
check_ipo_supported(RESULT HAS_IPO)