Debug vs Release in Cmake

Asked

Viewed 49 times

3

How to specify the flags for debug release vs C/C++.

1 answer

0

CMAKE_BUILD_TYPE is the Cmake variable you are looking for. You can generate build files by passing the setting of this variable per command line:

cmake -DCMAKE_BUILD_TYPE=Debug ..

You can also change the value of CMAKE_BUILD_TYPE spinning ccmake .., activating advanced mode (by pressing the key t). When you’re done, press c to configure and g to generate the new files.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.