From 1729b46e13139ae14d6d3b14fce3ce620e4e45bc Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Thu, 17 Aug 2023 12:26:57 +0800 Subject: [PATCH] update --- example/CMakeLists.txt | 6 +++--- src/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 00296b03..03c6a08c 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -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() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b6a77811..f7aed8c7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()