Right-click on the solution title in the Solution Explorer
window, then go to Configuration Properties
-> Configuration
. The table appears, showing check-boxes, allowing to turn off/on a build of particular projects for certain configurations.
My solution and projects are generated with CMake.
Is it possible to turn off a particular project for Debug build configuration from CMakeLists.txt?
==
Background of a problem is failing build of Cython project for Debug config. Release builds fine. CMake module was taken from this example on Github.
Debug config wants debug Python library python27_d.lib
, that is forced by pyconfig.h. I use Anaconda python, which is missing this library.
Moreover, I don't need debug build of that project. I've unsuccessfully spent several hours, modifying CMakeLists.txt
in various ways, trying to remove definition of _DEBUG
macro from compiler command line. CLI parameter /D_DEBUG
was absent in all dialogs with properties and "complete command line" listings, that Visual Studio has shown me. Nevertheless, something has always appended it.
So, I'd like to simply disable this project in Debug build for now.