Fix use of DEVELOPER_MODE (related to ECBUILD-474)

This commit is contained in:
Shahram Najm 2020-07-29 14:28:11 +01:00
parent 89af2ae8dd
commit fdb658b1bc
1 changed files with 3 additions and 4 deletions

View File

@ -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()