From fdb658b1bce2e8b62f79fd7f24e210ef7c7ae5fd Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 29 Jul 2020 14:28:11 +0100 Subject: [PATCH] Fix use of DEVELOPER_MODE (related to ECBUILD-474) --- CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e1d52963..f8c6abd42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -319,10 +319,9 @@ endif() ############################################################################### # contents - -if( NOT ${DEVELOPER_MODE} ) - set( the_default_data_prefix ${CMAKE_INSTALL_PREFIX} ) -else() +set( the_default_data_prefix ${CMAKE_INSTALL_PREFIX} ) +if( ${DEVELOPER_MODE} ) + ecbuild_info("DEVELOPER_MODE is defined") set( the_default_data_prefix ${CMAKE_BINARY_DIR} ) endif()