McArcady / lnp-forge

A Dwarf Fortress starter pack builder for Linux & MacOS
Other
239 stars 19 forks source link

Running lnp-forge build multiple times fails #78

Closed conchyliculture closed 2 years ago

conchyliculture commented 2 years ago

cmake complains that add_subdirectory(twbt) is present multipletimes in ${dfhack_plugins_dir}/CMakeLists.custom.txt

This is due to the line:

echo "add_subdirectory(twbt)" >> ${dfhack_plugins_dir}/CMakeLists.custom.txt

in https://github.com/McArcady/lnp-forge/blob/master/scripts/build/twbt.sh#L36

When run multiple times, the CMakeLists.custom.txt file gets multiple lines of "add_subdirectory(twbt)" which cmale complains about.

Maybe consider replacing the ">>" with a single ">" ?

McArcady commented 2 years ago

Good catch! fixed in 669da11

McArcady commented 2 years ago

I cancelled the patch. Just 'clean' and 'build' again if it happens