Merge pull request #4835 from ligfx/configurefilescmrev
CMake: use configure_file to generate scmrev.h
This commit is contained in:
commit
e4c17f126c
|
@ -941,13 +941,10 @@ else()
|
|||
set(DOLPHIN_WC_IS_STABLE "0")
|
||||
endif()
|
||||
|
||||
file(WRITE ${PROJECT_BINARY_DIR}/Source/Core/Common/scmrev.h
|
||||
"#define SCM_REV_STR \"" ${DOLPHIN_WC_REVISION} "\"\n"
|
||||
"#define SCM_DESC_STR \"" ${DOLPHIN_WC_DESCRIBE} "\"\n"
|
||||
"#define SCM_BRANCH_STR \"" ${DOLPHIN_WC_BRANCH} "\"\n"
|
||||
"#define SCM_IS_MASTER " ${DOLPHIN_WC_IS_STABLE} "\n"
|
||||
"#define SCM_DISTRIBUTOR_STR \"" ${DISTRIBUTOR} "\"\n"
|
||||
)
|
||||
configure_file(
|
||||
"${PROJECT_SOURCE_DIR}/Source/Core/Common/scmrev.h.in"
|
||||
"${PROJECT_BINARY_DIR}/Source/Core/Common/scmrev.h"
|
||||
)
|
||||
include_directories("${PROJECT_BINARY_DIR}/Source/Core")
|
||||
|
||||
########################################
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#define SCM_REV_STR "${DOLPHIN_WC_REVISION}"
|
||||
#define SCM_DESC_STR "${DOLPHIN_WC_DESCRIBE}"
|
||||
#define SCM_BRANCH_STR "${DOLPHIN_WC_BRANCH}"
|
||||
#define SCM_IS_MASTER ${DOLPHIN_WC_IS_STABLE}
|
||||
#define SCM_DISTRIBUTOR_STR "${DISTRIBUTOR}"
|
Loading…
Reference in New Issue