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?
Forum Updated to NodeBB v4.3 + New Features

Detect in CMake DEBUG. How?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 461 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 24 May 2023, 02:53 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 24 May 2023, 04:14
    0
    • B bogong
      24 May 2023, 02:53

      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 24 May 2023, 04:14 last edited by
      #2

      @bogong CMAKE_BUILD_TYPE variable seems promising

      1 Reply Last reply
      1
      • G Offline
        G Offline
        goldenhawking
        wrote on 24 May 2023, 05:21 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

        1/3

        24 May 2023, 02:53

        • Login

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