From 952b94971f80d0d42b898c2ec1ff46b2485f7d10 Mon Sep 17 00:00:00 2001 From: rjawor Date: Mon, 27 Apr 2015 16:20:54 +0200 Subject: [PATCH] only configure prod resources if available --- CMakeLists.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea7e2aa..9ed8094 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,16 +125,21 @@ configure_file ( "${concordia_SOURCE_DIR}/concordia/common/config.hpp.in" "${concordia_SOURCE_DIR}/concordia/common/config.hpp" ) +message(STATUS "Configured common/config.hpp") configure_file ( "${concordia_SOURCE_DIR}/tests/resources/concordia-config/concordia.cfg.in" "${concordia_SOURCE_DIR}/tests/resources/concordia-config/concordia.cfg" ) +message(STATUS "Configured tests/.../concordia.cfg") -configure_file ( - "${concordia_SOURCE_DIR}/prod/resources/concordia-config/concordia.cfg.in" - "${concordia_SOURCE_DIR}/prod/resources/concordia-config/concordia.cfg" - ) +if (EXISTS "${concordia_SOURCE_DIR}/prod/resources/concordia-config/concordia.cfg.in") + configure_file ( + "${concordia_SOURCE_DIR}/prod/resources/concordia-config/concordia.cfg.in" + "${concordia_SOURCE_DIR}/prod/resources/concordia-config/concordia.cfg" + ) + message(STATUS "Configured prod/.../concordia.cfg") +endif() # ================================================ # Concordia: sub-projects