From b2dbcb55e2832c373fecb4033a3ed77e5dbc77aa Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 21 Oct 2024 12:49:43 -0500 Subject: Add vector and option. --- cmake/CheckGit.cmake | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cmake/CheckGit.cmake') diff --git a/cmake/CheckGit.cmake b/cmake/CheckGit.cmake index f7d8bce..46736e7 100644 --- a/cmake/CheckGit.cmake +++ b/cmake/CheckGit.cmake @@ -7,8 +7,8 @@ if (NOT DEFINED post_configure_dir) set(post_configure_dir ${CMAKE_BINARY_DIR}/include) endif () -set(pre_configure_file ${pre_configure_dir}/fud_version.hpp.in) -set(post_configure_file ${post_configure_dir}/fud_version.hpp) +set(pre_configure_file ${pre_configure_dir}/fud_config.hpp.in) +set(post_configure_file ${post_configure_dir}/fud_config.hpp) function(CheckGitWrite git_hash) file(WRITE ${CMAKE_BINARY_DIR}/git-state.txt ${git_hash}) @@ -37,15 +37,15 @@ function(CheckGitVersion git_hash) file(MAKE_DIRECTORY ${post_configure_dir}) endif () - # if (NOT EXISTS ${post_configure_dir}/fud_version.h) - # file(COPY ${pre_configure_dir}/fud_version.h DESTINATION ${post_configure_dir}) + # if (NOT EXISTS ${post_configure_dir}/fud_config.h) + # file(COPY ${pre_configure_dir}/fud_config.h DESTINATION ${post_configure_dir}) # endif() if (NOT DEFINED GIT_HASH_CACHE) set(GIT_HASH_CACHE "INVALID") endif () - # Only update the fud_version.cpp if the hash has changed. This will + # Only update the fud_config.cpp if the hash has changed. This will # prevent us from rebuilding the project more than we need to. if (NOT ${GIT_HASH} STREQUAL ${GIT_HASH_CACHE} OR NOT EXISTS ${post_configure_file}) # Set che GIT_HASH_CACHE variable the next build won't have @@ -70,8 +70,8 @@ function(CheckGitSetup top_git_hash) BYPRODUCTS ${post_configure_file} ) - add_library(fud_version INTERFACE ${CMAKE_BINARY_DIR}/include/fud_version.hpp) - add_dependencies(fud_version AlwaysCheckGit) + add_library(fud_config INTERFACE ${CMAKE_BINARY_DIR}/include/fud_config.hpp) + add_dependencies(fud_config AlwaysCheckGit) CheckGitVersion(git_hash) set(${top_git_hash} ${git_hash} PARENT_SCOPE) -- cgit v1.2.3