mirror of https://github.com/ecmwf/eccodes.git
Fix for CMake 3.1
This commit is contained in:
parent
4a097bb807
commit
e052f403e2
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue