mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
cmake: Allow overriding package version
This commit is contained in:
parent
1a556740d5
commit
86a708cee5
|
@ -27,8 +27,10 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/sanitizers")
|
||||||
include(CMakeDependentOption)
|
include(CMakeDependentOption)
|
||||||
include(SPIR-V)
|
include(SPIR-V)
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
if(NOT GIT_DESC)
|
||||||
include(GetGitRevisionDescription)
|
include(GetGitRevisionDescription)
|
||||||
git_describe(GIT_DESC "--always")
|
git_describe(GIT_DESC "--always")
|
||||||
|
endif()
|
||||||
if(NOT ${CMAKE_VERSION} VERSION_LESS 3.9)
|
if(NOT ${CMAKE_VERSION} VERSION_LESS 3.9)
|
||||||
include(CheckIPOSupported)
|
include(CheckIPOSupported)
|
||||||
check_ipo_supported(RESULT HAS_IPO)
|
check_ipo_supported(RESULT HAS_IPO)
|
||||||
|
|
Loading…
Reference in a new issue