rbutil: Remove generated header from giversion interface target.

cmake on Windows doesn't like this, and it's not necessary.

Change-Id: I65b9eb989e51df388cabcb36a246068dba80630c
This commit is contained in:
Dominik Riebeling 2021-12-26 11:14:22 +01:00
parent 80c0268c7a
commit 9f3d6e47e7

View file

@ -343,8 +343,7 @@ add_custom_target(gitversion.h
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/gitversion/gitversion.h)
# link to get git version header.
add_library(gitversion INTERFACE
${CMAKE_CURRENT_BINARY_DIR}/gitversion/gitversion.h)
add_library(gitversion INTERFACE)
add_dependencies(gitversion gitversion.h)
target_include_directories(gitversion INTERFACE ${CMAKE_CURRENT_BINARY_DIR}/gitversion)