From 0205215b3126afbfe86d336219f97478b0d98d17 Mon Sep 17 00:00:00 2001 From: Dan Raviv Date: Tue, 19 Mar 2024 13:22:07 -0700 Subject: [PATCH] feat: also add GitHash header to target sources Makes it visible in project for some generators --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index faadd5a..08f85b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,6 +76,7 @@ function(SetupGitHash) # Create library for user add_library(githash ${GitHash_CppFile}) target_include_directories(githash PUBLIC "${CMAKE_CURRENT_LIST_DIR}/include") + target_sources(githash PUBLIC "${CMAKE_CURRENT_LIST_DIR}/include/GitHash.hpp") add_dependencies(githash CheckGitHash) # Output library name to the other CMakeLists.txt