only configure prod resources if available

This commit is contained in:
rjawor 2015-04-27 16:20:54 +02:00
parent bb7608d05e
commit 952b94971f

View File

@ -125,16 +125,21 @@ configure_file (
"${concordia_SOURCE_DIR}/concordia/common/config.hpp.in" "${concordia_SOURCE_DIR}/concordia/common/config.hpp.in"
"${concordia_SOURCE_DIR}/concordia/common/config.hpp" "${concordia_SOURCE_DIR}/concordia/common/config.hpp"
) )
message(STATUS "Configured common/config.hpp")
configure_file ( configure_file (
"${concordia_SOURCE_DIR}/tests/resources/concordia-config/concordia.cfg.in" "${concordia_SOURCE_DIR}/tests/resources/concordia-config/concordia.cfg.in"
"${concordia_SOURCE_DIR}/tests/resources/concordia-config/concordia.cfg" "${concordia_SOURCE_DIR}/tests/resources/concordia-config/concordia.cfg"
) )
message(STATUS "Configured tests/.../concordia.cfg")
if (EXISTS "${concordia_SOURCE_DIR}/prod/resources/concordia-config/concordia.cfg.in")
configure_file ( configure_file (
"${concordia_SOURCE_DIR}/prod/resources/concordia-config/concordia.cfg.in" "${concordia_SOURCE_DIR}/prod/resources/concordia-config/concordia.cfg.in"
"${concordia_SOURCE_DIR}/prod/resources/concordia-config/concordia.cfg" "${concordia_SOURCE_DIR}/prod/resources/concordia-config/concordia.cfg"
) )
message(STATUS "Configured prod/.../concordia.cfg")
endif()
# ================================================ # ================================================
# Concordia: sub-projects # Concordia: sub-projects