Glenn Coombs <>

> Is there a more elegant solution that I am missing ?  Ideally something
> like:
> add_definitions(CONFIG=Debug;Release;RelWithDebInfo;MinSizeRel
> which I know doesn't exist but I really wish it did :-)

Isn't it OK to just do something like:

  if (NOT "${CMAKE_BUILD_TYPE}" STREQUAL "ReleaseNoOutFiles")
  endif ()

Powered by

Visit other Kitware open-source projects at

Please keep messages on-topic and check the CMake FAQ at:

Follow this link to subscribe/unsubscribe:

Reply via email to