[CMake] how to determine debug or release mode?

Dirk vanMeeuwen DvanMeeuwen at technip.com
Wed Mar 14 04:29:32 EDT 2012


IF(CMAKE_BUILD_TYPE MATCHES DEBUG)
    message("debug mode")
ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG)

Kind regards,

Dirk van Meeuwen,
Process Modeling Engineer

Technip Benelux B.V. 
Boerhaavelaan 31, PO Box 86
2700 AB Zoetermeer

direct dial: +31 (0)79 3293 843
direct fax : +31 (0)79 3293 700
direct email: dvanmeeuwen at technip.com
internet: www.spyrosuite.com



From:   Quân Phạm Minh <quanpm4186 at gmail.com>
To:     cmake at cmake.org
Date:   03/14/2012 09:19 AM
Subject:        [CMake] how to determine debug or release mode?
Sent by:        cmake-bounces at cmake.org



how determine build type in cmake like 
if (CMAKE_BUILD_TYPE EQUAL "DEBUG")
    message("debug mode")
endif (CMAKE_BUILD_TYPE EQUAL "DEBUG") --

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


 
 
This email and any attached files ("Message") may contain confidential and/or privileged information. It is intended solely for the addressee(s). If you receive this Message in error, inform the sender by reply email, delete the Message and destroy any printed copy.
Any unauthorized use, distribution, or copying of this Message or any part thereof is prohibited. Emails are susceptible to alteration. Neither Technip nor any of its affiliates shall be liable for the Message if altered or falsified nor shall they be liable for any damage caused by any virus that might be transmitted with this Message.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120314/58e14429/attachment.htm>


More information about the CMake mailing list