mirror of https://github.com/ecmwf/eccodes.git
ECBUILD-116 CMake: use ecbuild_add_c_flags
This commit is contained in:
parent
8b13c8887f
commit
05bdf8761e
|
@ -216,7 +216,7 @@ add_definitions( -DHAVE_ECCODES_CONFIG_H )
|
||||||
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/eccodes_config.h DESTINATION ${INSTALL_INCLUDE_DIR} )
|
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/eccodes_config.h DESTINATION ${INSTALL_INCLUDE_DIR} )
|
||||||
|
|
||||||
if( CMAKE_COMPILER_IS_GNUCC )
|
if( CMAKE_COMPILER_IS_GNUCC )
|
||||||
cmake_add_c_flags("-pedantic")
|
ecbuild_add_c_flags("-pedantic")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
############################################################################################
|
############################################################################################
|
||||||
|
|
Loading…
Reference in New Issue