diff --git a/CMakeLists.txt b/CMakeLists.txt index 639262c92..db4cdeb60 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -342,7 +342,7 @@ if( NOT PROJECT_NAME STREQUAL CMAKE_PROJECT_NAME ) set( ECCODES_FOUND TRUE PARENT_SCOPE ) set( ECCODES_DEFINITIONS ${ECCODES_DEFINITIONS} PARENT_SCOPE )# includes already TPL definitions set( ECCODES_INCLUDE_DIRS ${ECCODES_INCLUDE_DIRS} ${ECCODES_EXTRA_INCLUDE_DIRS} PARENT_SCOPE ) - set( ECCODES_LIBRARIES ${ECCODES_LIBRARIES} ${ECCODES_EXTRA_LIBRARIES} ${CMATH_LIBRARIES} PARENT_SCOPE ) + set( ECCODES_LIBRARIES ${ECCODES_LIBRARIES} ${ECCODES_EXTRA_LIBRARIES} PARENT_SCOPE ) set( ECCODES_INSTALL_EXTRA_TOOLS ${ECCODES_INSTALL_EXTRA_TOOLS} PARENT_SCOPE ) set( ECCODES_DEFINITION_PATH ${CMAKE_BINARY_DIR}/${ECCODES_DEFINITION_SUFF} PARENT_SCOPE ) set( ECCODES_SAMPLES_PATH ${CMAKE_BINARY_DIR}/${ECCODES_SAMPLES_SUFF} PARENT_SCOPE ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 04b8c752c..f385bb5ef 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -432,9 +432,8 @@ ecbuild_add_library(TARGET eccodes # griby.c gribl.c ${grib_api_srcs} GENERATED grib_api_version.c - LIBS ${ECCODES_EXTRA_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} - TEMPLATES ${grib_api_extra_srcs} - ${CMATH_LIBRARIES} ) + LIBS ${ECCODES_EXTRA_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${CMATH_LIBRARIES} + TEMPLATES ${grib_api_extra_srcs}) install( FILES grib_api.h eccodes.h eccodes_windef.h DESTINATION ${INSTALL_INCLUDE_DIR} )