[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] Override CMAKE_C_FLAGS_RELEASE
From: |
Tom M. |
Subject: |
Re: [fluid-dev] Override CMAKE_C_FLAGS_RELEASE |
Date: |
Fri, 24 Nov 2017 18:34:47 +0100 |
Ok, and how about changing cmake to:
set ( CMAKE_C_FLAGS_RELEASE "-std=gnu89 -O2 ... ${CMAKE_C_FLAGS_RELEASE}" )
Any reason not to do that?
Tom
Am Freitag, 24. November 2017, 18:03:58 CET schrieb Marcus Weseloh:
> 2017-11-24 17:37 GMT+01:00 Tom M. <address@hidden>:
>
>
> > So as it seems CMAKE_C_FLAGS is prepended rather than appended.
>
>
> Yes, and that is the problem. I would like to change the optimization to
> -O3. But RELEASE flags set -O2 and overwrites my -O3 again. Hm... so it
> seems like I have no choice but to patch the CMakeLists.txt file in my
> build-process.
>
> Cheers,
>
> Marcus
>