Hello everybody,
I am using Cmake to generate my VS2013 solutions. My problem right now is
that no debug information is included as well as no debug preprocessor
symbols are set (DEBUG _DEBUG WIN32 _WINDOWS).
I run cmake without CMAKE_BUILD_TYPE specified as I select that in VS. So I
need to stick to build type specific variables. But those do not seem to
work.
This is my command line: " cmake.exe -H.
-B"../../../../Intermediate/Creator" -G "Visual Studio 12 2013 Win64" "
My CMakeLists.txt roughly looks like this:
if(WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
endif()
project(Creator)
set(COMPILE_DEFINITIONS_DEBUG "${COMPILE_DEFINITIONS_DEBUG}
-DCHECK_MEMORY_LEAKS=1")
.
When I use add_definitions() or add_compile_options() they work fine but are
of course not build type dependent outside of cmake.
Any suggestion what I could to have cmake set the default debug definitions
and compiler options for my project?
Thanks
Dan
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake