Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Detect in CMake DEBUG. How?

Detect in CMake DEBUG. How?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 638 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bogong
    wrote on last edited by
    #1

    Hello all!
    Got confused with simple issue. Detect when QT building in debug mode. How to detect it CMake?

    C 1 Reply Last reply
    0
    • B bogong

      Hello all!
      Got confused with simple issue. Detect when QT building in debug mode. How to detect it CMake?

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      @bogong CMAKE_BUILD_TYPE variable seems promising

      1 Reply Last reply
      1
      • goldenhawkingG Offline
        goldenhawkingG Offline
        goldenhawking
        wrote on last edited by
        #3

        Using this script to display all CMake status paras.

        get_cmake_property(_variableNames VARIABLES)
        foreach (_variableName ${_variableNames})
            message(STATUS "${_variableName}=${${_variableName}}")
        endforeach()
        
        

        Qt is the best C++ framework I've ever met.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved