Skip to content

Commit

Permalink
avoid spurious rebuilds on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Sep 2, 2023
1 parent 081249c commit fc4a77e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/CMakeLists.txt
Expand Up @@ -239,4 +239,7 @@ string(APPEND zip_err_str [=[}\;

const int _zip_err_details_count = sizeof(_zip_err_details)/sizeof(_zip_err_details[0])\;
]=])
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/zip_err_str.c ${zip_err_str})
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/zip_err_str.c.in ${zip_err_str})
file(COPY_FILE ${CMAKE_CURRENT_BINARY_DIR}/zip_err_str.c.in
${CMAKE_CURRENT_BINARY_DIR}/zip_err_str.c
ONLY_IF_DIFFERENT)

0 comments on commit fc4a77e

Please sign in to comment.