Am Thu, 18 Mar 2021 16:50:19 +0100 schrieb "'Kay F. Jahnke' via hugin and other free panoramic software" <[email protected]>:
> @Kornel: If I update pv_combine.cc in the root directory, then issue
> 'make' in the build directory, the update goes unnoticed. I can touch
> the generated per-isa variants (pv_combine_avx.cc etc.) which triggers a
> recompile, but I think this should happen automatically. Can you maybe
> fix that? It should just be a matter of telling cmake about the
> unexpected dependencies.
>
> Kay
>
My fail.
use
foreach(_f pv_fallback pv_avx pv_avx2 pv_avx512f)
add_custom_command(
COMMAND $(CMAKE_COMMAND) -E copy_if_different
ARGS ${CMAKE_CURRENT_SOURCE_DIR}/pv_rendering.cc
${CMAKE_BINARY_DIR}/${_f}.cc OUTPUT ${CMAKE_BINARY_DIR}/${_f}.cc
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/pv_rendering.cc
)
endforeach()
foreach(_f pv_cmb_fallback pv_cmb_avx pv_cmb_avx2 pv_cmb_avx512f)
add_custom_command(
COMMAND $(CMAKE_COMMAND) -E copy_if_different
ARGS ${CMAKE_CURRENT_SOURCE_DIR}/pv_combine.cc
${CMAKE_BINARY_DIR}/${_f}.cc OUTPUT ${CMAKE_BINARY_DIR}/${_f}.cc
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/pv_combine.cc
)
endforeach()
(See 'DEPENDS', hope this is better)
Kornel
--
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/hugin-ptx/20210318181505.431d0fab%40admin1-desktop.
pgpx_zZ5Bsaom.pgp
Description: Digitale Signatur von OpenPGP
