We have a large-ish system. Deep within an included utility class, I have this code:
CONFIGURE_FILE(${DCMTK_SOURCE_DIR}/osconfig.h.in ${DCMTK_BINARY_DIR}/include/dcmtk/config/osconfig.h) However, every time I touch a CMake file, ³osconfig.h² is regenerated, causing nearly the entire library to re-build because of dependancies. Is this a good/proper/recommended way to guard against regeneration of the file? # NB: you would need to delete the configured osconfig.h to re-generate. if ( NOT EXISTS ${DCMTK_BINARY_DIR}/include/dcmtk/config/osconfig.h) message ( STATUS "Reconfigure" ) CONFIGURE_FILE(${DCMTK_SOURCE_DIR}/osconfig.h.in ${DCMTK_BINARY_DIR}/include/dcmtk/config/osconfig.h) endif() Or is there some little known, little documented CMake feature that I don¹t know about? Thanks, -dan -- Daniel Blezek, PhD Medical Imaging Informatics Innovation Center P 127 or (77) 8 8886 T 507 538 8886 E blezek.dan...@mayo.edu Mayo Clinic 200 First St. S.W. Harwick SL-44 Rochester, MN 55905 mayoclinic.org
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake