[CMake] debugging symbols in project

Owen Hogarth II gurenchan at gmail.com
Sat Jan 2 16:36:43 EST 2016


wow, that was a silly mistake, my builds are automated and I removed that
line somewhere along the line.

Thanks!

On Sun, Jan 3, 2016 at 5:28 AM, Rainer Poisel <rainer.poisel at gmail.com>
wrote:

> Owen,
>
> sorry, I replied directly to you instead of replying to this mailing list.
>
> Have you tried passing "-DCMAKE_BUILD_TYPE=Debug" to CMake when invoking
> it?
>
> It is also possible to set this option when using "cmake-gui".
>
> Many regards,
>   Rainer
>
>
> On Sat, Jan 2, 2016 at 9:23 PM, Owen Hogarth II <gurenchan at gmail.com>
> wrote:
> > I have a simple cmake project that I am trying to test with gdb but I am
> > having trouble. GDB is reporting now debugging symbols.
> >
> > CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
> > PROJECT(core_e)
> >
> >
> > SET(CMAKE_MACOSX_RPATH 1)
> >
> > set(CMAKE_C_FLAGS "-g -Wall")
> >
> > FIND_PACKAGE(OpenGL REQUIRED)
> >
> > SET(HEADER_FILES ${CMAKE_CURRENT_SOURCE_DIR}/headers/core_e.h)
> > SET(SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/core_e.c)
> > SET(TARGET_LIBS glfw ${OPENGL_LIBRARIES})
> > SET(TARGET_INC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/headers" )
> >
> > ADD_LIBRARY(core_e SHARED ${SRC_FILES} ${HEADER_FILES})
> > TARGET_LINK_LIBRARIES(core_en\ ${TARGET_LIBS})
> > TARGET_INCLUDE_DIRECTORIES(core_e PUBLIC ${TARGET_INC_DIR})
> >
> >
> >
> >
> > --
> >
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160103/cb1e8d04/attachment.html>


More information about the CMake mailing list