<div dir="ltr">Thanks,<div><br></div><div>That works, apparently it was already working, but somehow I don't see the debug info when I use the Apache APR with debug logging enabled.</div><div><br></div><div>I guess I have to take a look into APR to see what is going on.</div>
<div><br></div><div><br></div><div>Thanks for the replies!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/19 Cristian Bidea <span dir="ltr"><<a href="mailto:cristi@king.com" target="_blank">cristi@king.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you're using clang or gcc setting the -g compile flag should do the trick.<br>
<br>
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")<br>
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")<br>
<br>
If you're setting the CMAKE_BUILD_TYPE then you should use the corresponding configuration flags:<br>
<br>
CMAKE_CXX_FLAGS_DEBUG<br>
CMAKE_C_FLAGS_DEBUG<br>
CMAKE_CXX_FLAGS_RELEASE<br>
CMAKE_C_FLAGS_RELEASE<br>
<br>
-Cristi<div class="im"><br>
<br>
On Wed Sep 18 19:16:26 2013, Alexander Broekhuis wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I am using the Makefile generator and not XCode.<br>
<br>
<br>
2013/9/18 Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br></div>
<mailto:<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@<u></u>bluequartz.net</a>>><div class="im"><br>
<br>
Are you using Makefiles or the XCode generator or something else?<br>
______________________________<u></u>_____________________________<br>
Mike Jackson Principal Software Engineer<br>
BlueQuartz Software Dayton, Ohio<br></div>
<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a> <mailto:<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@<u></u>bluequartz.net</a>><br>
<a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a> <<a href="http://www.bluequartz.net" target="_blank">http://www.bluequartz.net</a>><div class="im"><br>
<br>
On Sep 18, 2013, at 9:37 AM, Alexander Broekhuis<br></div><div class="im">
<<a href="mailto:a.broekhuis@gmail.com" target="_blank">a.broekhuis@gmail.com</a> <mailto:<a href="mailto:a.broekhuis@gmail.com" target="_blank">a.broekhuis@gmail.com</a>><u></u>> wrote:<br>
<br>
> Hi all,<br>
><br>
> Basically a simple question: How do I compile a library with<br>
debug info on OSX?<br>
><br>
> I've tried to obvious and set the CMAKE_BUILD_TYPE to Debug. But<br>
I am either doing something wrong, or this isn't enough..<br>
><br>
> To check if there is debug info I use dwarfdump, and the output<br>
always says: .debug_info contents: < EMPTY ><br>
><br>
> What am I doing wrong?<br>
><br>
> --<br>
> Met vriendelijke groet,<br>
><br>
> Alexander Broekhuis<br>
> --<br>
><br></div>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><div class="im"><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
<a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
><br>
> Kitware offers various services to support the CMake community.<br>
For more information on each offering, please visit:<br>
><br>
> CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/<u></u>support.html</a><br>
> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/<u></u>consulting.html</a><br>
> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/<u></u>training.html</a><br>
><br>
> Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
<br>
--<br>
<br></div>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><div class="im"><br>
<br>
Please keep messages on-topic and check the CMake FAQ at:<br>
<a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community.<br>
For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/<u></u>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/<u></u>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/<u></u>training.html</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
<br>
<br>
<br>
<br>
--<br>
Met vriendelijke groet,<br>
<br>
Alexander Broekhuis<br>
<br>
<br></div><div class="im">
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/<u></u>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/<u></u>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/<u></u>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
</div></blockquote>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Met vriendelijke groet,<br><br>Alexander Broekhuis
</div>