From 941d3854c9e4d2e920b996312fbe261ab06fbfad Mon Sep 17 00:00:00 2001 From: Christian Hardmeier Date: Fri, 23 Jan 2015 16:03:07 +0100 Subject: [PATCH] Prevent unnecessary rebuilds. --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ac90b3b..c49da989 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -411,8 +411,7 @@ else() message("${CMAKE_CXX_COMPILER} -E -D ${ARABICA_XML_BACKEND} -D NO_WINDOWS ${CMAKE_CURRENT_LIST_DIR}/${ARABICA_CONFIG_FILE} -o ${CMAKE_CURRENT_LIST_DIR}/include/SAX/ArabicaConfig.hpps") add_custom_command(OUTPUT include/SAX/ArabicaConfig.hpp - COMMAND ${CMAKE_CXX_COMPILER} -E -D ${ARABICA_XML_BACKEND} -D NO_WINDOWS ${CMAKE_CURRENT_LIST_DIR}/${ARABICA_CONFIG_FILE} -o ${CMAKE_CURRENT_LIST_DIR}/include/SAX/ArabicaConfig.hpp - ) + COMMAND ${CMAKE_CXX_COMPILER} -E -D ${ARABICA_XML_BACKEND} -D NO_WINDOWS ${CMAKE_CURRENT_LIST_DIR}/${ARABICA_CONFIG_FILE} -o ${CMAKE_CURRENT_LIST_DIR}/include/SAX/ArabicaConfig.hpp.new && ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_LIST_DIR}/include/SAX/ArabicaConfig.hpp.new ${CMAKE_CURRENT_LIST_DIR}/include/SAX/ArabicaConfig.hpp && ${CMAKE_COMMAND} -E remove ${CMAKE_CURRENT_LIST_DIR}/include/SAX/ArabicaConfig.hpp.new) endif()