ecbuild icon indicating copy to clipboard operation
ecbuild copied to clipboard

Adding extra CMAKE_BUILD_TYPE?

Open mathomp4 opened this issue 4 years ago • 1 comments

A query for the "canonical" ecbuild. We (in GEOS) have a fork of ecbuild that we use in our project. Recently I had to patch our fork because I wanted to add a new CMAKE_BUILD_TYPE and it wasn't one of the allowed types by ecbuild: https://github.com/ecmwf/ecbuild/blob/d4347cf92466c742ef989444b2acbf7c867a338e/cmake/ecbuild_define_build_types.cmake#L51-L59

My question is: is there a better way to do this? I added Aggressive as I was adding "aggressive" flags, but say someone wanted to use the more "official" MinSizeRel (which is in the CMake source). As far as I can tell, they couldn't with ecbuild.

mathomp4 avatar Dec 10 '20 17:12 mathomp4

@tlmquintino Just a ping. Do you have a good method of a way to "add" additional CMAKE_BUILD_TYPES to an ecbuild system (extra functions, toolchains, etc.)?

mathomp4 avatar Aug 24 '21 14:08 mathomp4