Re: [CMake] modifying cmake_build_type cflags per target

2019-11-19 Thread Eric Doenges
Am 19.11.19 um 22:51 schrieb Craig Scott: On Tue, Nov 19, 2019 at 10:36 PM Eric Doenges > wrote: Am 19.11.19 um 12:09 schrieb Stéphane Ancelot: Hi, I have a particular target (using swig / jni) that must not have -O3 -NDEBUG flags from Relase

Re: [CMake] modifying cmake_build_type cflags per target

2019-11-19 Thread Craig Scott
On Tue, Nov 19, 2019 at 10:36 PM Eric Doenges wrote: > Am 19.11.19 um 12:09 schrieb Stéphane Ancelot: > > Hi, > > I have a particular target (using swig / jni) that must not have -O3 > -NDEBUG flags from Relase build type > > How can I overload this target flags ? > > Since CMAKE__FLAGS_RELEASE

Re: [CMake] modifying cmake_build_type cflags per target

2019-11-19 Thread Eric Doenges
Am 19.11.19 um 12:09 schrieb Stéphane Ancelot: Hi, I have a particular target (using swig / jni) that must not have -O3 -NDEBUG flags from Relase build type How can I overload this target flags ? Since CMAKE__FLAGS_RELEASE does not map to a user-visible target property, you cannot

[CMake] modifying cmake_build_type cflags per target

2019-11-19 Thread Stéphane Ancelot
Hi, I have a particular target (using swig / jni) that must not have -O3 -NDEBUG flags from Relase build type How can I overload this target flags ? Regards, S.Ancelot -- Powered by kitware.com/cmake Kitware offers various services to support the CMake community. For more information