fixes casacore include path on das5

This commit is contained in:
Faruk D 2018-02-27 15:56:54 +01:00
parent c660eb70e7
commit e657c4769a
1 changed files with 5 additions and 3 deletions

View File

@ -106,15 +106,17 @@ endif()
# Check pre-defined environment variables # Check pre-defined environment variables
## CASACORE_LIB=/cm/shared/package/casacore/v2.3.0-gcc-4.9.3/lib ## CASACORE_LIB=/cm/shared/package/casacore/v2.3.0-gcc-4.9.3/lib
## CASACORE_INCLUDE=/cm/shared/package/casacore/v2.3.0-gcc-4.9.3/include
## CASACORE_ROOT_DIR=/cm/shared/package/casacore/v2.3.0-gcc-4.9.3
if (NOT "$ENV{CASACORE_ROOT_DIR}" STREQUAL "") if (NOT "$ENV{CASACORE_ROOT_DIR}" STREQUAL "")
set(CASACORE_ROOT_DIR "$ENV{CASACORE_ROOT_DIR}" CACHE INTERNAL "Copied from environment variable") set(CASACORE_ROOT_DIR "$ENV{CASACORE_ROOT_DIR}" CACHE INTERNAL "Copied from environment variable")
message("Using environment variable CASACORE_ROOT_DIR = ${CASACORE_ROOT_DIR}") message("Using environment variable CASACORE_ROOT_DIR = ${CASACORE_ROOT_DIR}")
endif() endif()
if (NOT "$ENV{CASACORE_INCLUDE}" STREQUAL "")
set(CASACORE_INCLUDE_DIR "$ENV{CASACORE_INCLUDE}" CACHE INTERNAL "Copied from environment variable")
message("Using environment variable CASACORE_INCLUDE_DIR = ${CASACORE_INCLUDE_DIR}")
endif()