Where and how can I add an optimization level to a VisualGDB Cmake project

Sysprogs forums Forums VisualGDB Where and how can I add an optimization level to a VisualGDB Cmake project

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8921
    dmitryponv
    Participant

    Hello, I am trying to explicitly build my project with different optimization settings.

    I’m trying to add -O3 to CFLAGS, and O3, and -DO3 and everything else I could think of.
    The automatic test fails on “Importing Specs” step.

    My questions is, where and what do I need to enter so that I have level 3 optimization?

    Next, how is optimization done by default? If it’s not explicitly define, is it -O0 for debug builds and -O3 for release builds?

    Lastly, if I have “-DCMAKE_BUILD_TYPE=DEBUG ” in the .cmake file, does this mean the build is forced to build it debug, even if I specify to build with release? Because both my release and debug executables are the same exact size.

    Thanks,

    • This topic was modified 7 years, 8 months ago by dmitryponv.
    #8925
    support
    Keymaster

    Hi,

    Looks like your support period has expired. Please renew your license and we will be happy to help you.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.