From e052f403e28cb58e8ad370886320360e19350db6 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 27 Jan 2015 10:26:33 +0000 Subject: [PATCH] Fix for CMake 3.1 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dadf5c882..b351adddc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -255,7 +255,7 @@ if( EC_HAVE_FORTRAN ) list( APPEND GRIB_API_LIBRARIES grib_api_f77 grib_api_f90 ) endif() -if( NOT ${PROJECT_NAME} STREQUAL ${CMAKE_PROJECT_NAME} ) +if( NOT PROJECT_NAME STREQUAL CMAKE_PROJECT_NAME ) set( ECCODES_DEFINITIONS ${ECCODES_DEFINITIONS} PARENT_SCOPE )# includes already TPL definitions set( GRIB_API_INCLUDE_DIRS ${GRIB_API_INCLUDE_DIRS} ${GRIB_API_EXTRA_INCLUDE_DIRS} PARENT_SCOPE ) set( GRIB_API_LIBRARIES ${GRIB_API_LIBRARIES} ${GRIB_API_EXTRA_LIBRARIES} ${CMATH_LIBRARIES} PARENT_SCOPE )