Re: [CMake] Release flags on one target in debug build type

2017-05-05 Thread Dan Liew
On 5 May 2017 at 19:45, Konstantin Tokarev wrote: > Hello, > > Is there any clear way to build specific target in "Debug" mode with flags > that it would have in "Release"? > > In particular, build this specific target without effect of > CMAKE_CXX_FLAGS_DEBUG and CMAKE_C_FLAGS_DEBUG, while pres

Re: [CMake] Release flags on one target in debug build type

2017-05-05 Thread Konstantin Tokarev
05.05.2017, 23:22, "Michael Ellery" : >>  On May 5, 2017, at 11:45 AM, Konstantin Tokarev wrote: >> >>  Hello, >> >>  Is there any clear way to build specific target in "Debug" mode with flags >> that it would have in "Release"? >> >>  In particular, build this specific target without effect of

Re: [CMake] Release flags on one target in debug build type

2017-05-05 Thread Michael Ellery
> On May 5, 2017, at 11:45 AM, Konstantin Tokarev wrote: > > Hello, > > Is there any clear way to build specific target in "Debug" mode with flags > that it would have in "Release"? > > In particular, build this specific target without effect of > CMAKE_CXX_FLAGS_DEBUG and CMAKE_C_FLAGS_DEBU

[CMake] Release flags on one target in debug build type

2017-05-05 Thread Konstantin Tokarev
Hello, Is there any clear way to build specific target in "Debug" mode with flags that it would have in "Release"? In particular, build this specific target without effect of CMAKE_CXX_FLAGS_DEBUG and CMAKE_C_FLAGS_DEBUG, while preserving flags added by target_compile_options -- Regards, Kon