#734 Fixed issue on Linux when compiling in-source ERT

This commit is contained in:
Magne Sjaastad
2016-05-26 21:40:19 +02:00
parent 31cb06089d
commit e3fd05145f
2 changed files with 3 additions and 3 deletions

View File

@@ -452,7 +452,7 @@ if (RESINSIGHT_PRIVATE_INSTALL)
set(RESINSIGHT_INSTALL_RPATH ${RESINSIGHT_INSTALL_RPATH} ${RESINSIGHT_ODB_API_DIR}/lib)
endif()
if (NOT(${RESINSIGHT_ERT_EXTERNAL_LIB_ROOT} STREQUAL ""))
if (EXISTS ${RESINSIGHT_ERT_EXTERNAL_LIB_ROOT})
# append the external ERT lib root
set(RESINSIGHT_INSTALL_RPATH ${RESINSIGHT_INSTALL_RPATH} ${RESINSIGHT_ERT_EXTERNAL_LIB_ROOT})
endif()