Fix for CMake 3.1

This commit is contained in:
Shahram Najm 2015-01-27 10:26:33 +00:00
parent 4a097bb807
commit e052f403e2
1 changed files with 1 additions and 1 deletions

View File

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