Hello all,
You were correct, when CGAL is built it overrides CMAKE_BUILD_TYPE, as
documented here:
http://doc.cgal.org/latest/Manual/installation.html
The solution is to invoke:
cmake -DCGAL_DONT_OVERRIDE_CMAKE_FLAGS=True -DCMAKE_BUILD_TYPE=Debug ..
Thanks for your help!
Adam
On Sun, Mar
Thanks for the help!
It still runs Release mode:
Here's my project:
https://github.com/acgetchell/CDT-plusplus
┌─[*adam*][Hapkido][*±*][master *✗*][~/CDT-plusplus]
└─▪ tree
.
|.git
| |config
| |description
| |HEAD
| |hooks
| | |applypatch-msg.sample
| |
mkdir build-d
cd build-d
cmake
-DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=out ../your/source/procject
cmake --build .
cd ..
mkdir build-r
cd build-r
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=out
../your/source/procject
cmake --build . --target install
cd ..
On Wed, Feb 25,
Thanks for your reply.
I'm not sure I follow your answer. I do delete the directory each time I
build, but I'm still not understanding how you're building release or debug
versions to begin with.
I'm just automatically getting Release, unless I edit CMakeCache.txt after
I've built once.
I just
I use a different directory to build release and debug versions
if you didn't delete, then when it goes to build partial things, the .obj
files will still be newer than the .c files and will cause mixed
release-debug builds which generally results in bizarre crashes.
Once chosen, can't change
Hello all,
I've browsed this thread:
http://www.cmake.org/pipermail/cmake/2008-September/023808.html
But it doesn't work. My project is set to Release regardless, whether I do:
project( CDT-plusplus_ )
set(CMAKE_BUILD_TYPE RelWithDebInfo)
Or:
#
# If the user specifies -DCMAKE_BUILD_TYPE on