Skip to content

Commit 99979ef

Browse files
[CMake] Fix dependency on Git information.
The incorrect (and non-existent) file `include/mutable/version.cpp` was specified. It should be `include/mutable/version.hpp` instead, which `#include`s the generated `gitversion.tbl` file.
1 parent 41d4f96 commit 99979ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ add_custom_command(
210210
add_custom_target(gitversion ALL DEPENDS "${GITREV_FILE}")
211211
# Apparently, CMake's dependency scanner does not recognize the dependency to the GITREV_FILE. We add it manually.
212212
set_source_files_properties(
213-
"${CMAKE_SOURCE_DIR}/include/mutable/version.cpp"
213+
"${CMAKE_SOURCE_DIR}/include/mutable/version.hpp"
214214
PROPERTIES OBJECT_DEPENDS "${GITREV_FILE}"
215215
)
216216

0 commit comments

Comments
 (0)