chore: avoid rebuilding leanmanifest in each build (#5057)
This commit is contained in:
parent
d1174e10e6
commit
4d4d485c19
1 changed files with 2 additions and 1 deletions
|
|
@ -4,7 +4,8 @@ set_target_properties(leanmain PROPERTIES
|
|||
OUTPUT_NAME leanmain)
|
||||
|
||||
# library must contain at least one non-manifest file
|
||||
file(WRITE ${CMAKE_BINARY_DIR}/temp/empty.c)
|
||||
# We use `CONFIGURE` instead of `WRITE` so as to avoid touching the file on each run
|
||||
file(CONFIGURE OUTPUT ${CMAKE_BINARY_DIR}/temp/empty.c CONTENT "")
|
||||
add_library(leanmanifest STATIC ${CMAKE_BINARY_DIR}/temp/empty.c manifest.rc)
|
||||
set_target_properties(leanmanifest PROPERTIES
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/lean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue