From dd4e3f2695c213e4878265f2e68d8a83a7b6b14f Mon Sep 17 00:00:00 2001 From: Herman Gerritsen Date: Wed, 25 Sep 2019 16:35:29 +0200 Subject: [PATCH] Generated headerfiles added to the build step only. Otherwise they get mixed up with public interface header files from libraries --- cmake.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake.cmake b/cmake.cmake index 2cdf085..5e4b7c7 100644 --- a/cmake.cmake +++ b/cmake.cmake @@ -34,7 +34,7 @@ endfunction(_SET_GITVERSION_CMAKE_VARIABLE) ###################################################### function(TARGET_GIT_VERSION_INIT TARGET) _CREATE_GIT_VERSION_FILE() - TARGET_INCLUDE_DIRECTORIES(${TARGET} PUBLIC "${CMAKE_CURRENT_BINARY_DIR}/messmer_gitversion") + TARGET_INCLUDE_DIRECTORIES(${TARGET} PUBLIC $) _SET_GITVERSION_CMAKE_VARIABLE(GITVERSION_VERSION_STRING) endfunction(TARGET_GIT_VERSION_INIT)