This commit is contained in:
zhuzichu 2023-08-17 12:26:57 +08:00
parent 5661d46862
commit 1729b46e13
2 changed files with 4 additions and 4 deletions

View File

@ -37,9 +37,9 @@ else()
endif()
##
set(HEADER_FILE_VERSION_PATH ${CMAKE_SOURCE_DIR}/example/Version.h)
set(HEADER_FILE_VERSION_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../example/Version.h)
configure_file(
${CMAKE_SOURCE_DIR}/.cmake/Version.h.in
${CMAKE_CURRENT_SOURCE_DIR}/../.cmake/Version.h.in
${HEADER_FILE_VERSION_PATH}
)
@ -69,7 +69,7 @@ set(EXAMPLE_VERSION_RC_PATH "")
if(WIN32)
set(EXAMPLE_VERSION_RC_PATH ${CMAKE_BINARY_DIR}/version_${PROJECT_NAME}.rc)
configure_file(
${CMAKE_SOURCE_DIR}/.cmake/version_exe.rc.in
${CMAKE_CURRENT_SOURCE_DIR}/../.cmake/version_exe.rc.in
${EXAMPLE_VERSION_RC_PATH}
)
endif()

View File

@ -68,7 +68,7 @@ set(FLUENTUI_VERSION_RC_PATH "")
if(WIN32)
set(FLUENTUI_VERSION_RC_PATH ${CMAKE_BINARY_DIR}/version_${PROJECT_NAME}.rc)
configure_file(
${CMAKE_SOURCE_DIR}/.cmake/version_dll.rc.in
${CMAKE_CURRENT_SOURCE_DIR}/../.cmake/version_dll.rc.in
${FLUENTUI_VERSION_RC_PATH}
)
endif()