Skip to content

Commit

Permalink
CMake: Fix scmversion PRE_BUILD warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jan 8, 2025
1 parent 87743c7 commit 08a3c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scmversion/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if(CMAKE_HOST_SYSTEM MATCHES "Windows")
COMMAND cmd /k "${CMAKE_CURRENT_SOURCE_DIR}/gen_scmversion.bat"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
else()
add_custom_command(OUTPUT scmversion.cpp PRE_BUILD
add_custom_command(OUTPUT scmversion.cpp _scmversion.cpp
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/gen_scmversion.sh")
endif()

Expand Down

0 comments on commit 08a3c31

Please sign in to comment.