mirror of https://github.com/WerWolv/ImHex.git
build: Make sure cmake gets reconfigured when version file changes
This commit is contained in:
parent
a0b2473bf4
commit
ffbaef3872
|
@ -323,7 +323,9 @@ macro(setDefaultBuiltTypeIfUnset)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
function(loadVersion version)
|
function(loadVersion version)
|
||||||
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" read_version)
|
set(VERSION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/VERSION")
|
||||||
|
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${VERSION_FILE})
|
||||||
|
file(READ "${VERSION_FILE}" read_version)
|
||||||
set(${version} ${read_version} PARENT_SCOPE)
|
set(${version} ${read_version} PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue