<div dir="ltr">Thanks,<div><br></div><div>That works, apparently it was already working, but somehow I don&#39;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">&lt;<a href="mailto:cristi@king.com" target="_blank">cristi@king.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you&#39;re using clang or gcc setting the -g compile flag should do the trick.<br>
<br>
set (CMAKE_CXX_FLAGS &quot;${CMAKE_CXX_FLAGS} -g&quot;)<br>
set (CMAKE_C_FLAGS &quot;${CMAKE_C_FLAGS} -g&quot;)<br>
<br>
If you&#39;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 &lt;<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br></div>
&lt;mailto:<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@<u></u>bluequartz.net</a>&gt;&gt;<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> &lt;mailto:<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@<u></u>bluequartz.net</a>&gt;<br>
    <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a> &lt;<a href="http://www.bluequartz.net" target="_blank">http://www.bluequartz.net</a>&gt;<div class="im"><br>
<br>
    On Sep 18, 2013, at 9:37 AM, Alexander Broekhuis<br></div><div class="im">
    &lt;<a href="mailto:a.broekhuis@gmail.com" target="_blank">a.broekhuis@gmail.com</a> &lt;mailto:<a href="mailto:a.broekhuis@gmail.com" target="_blank">a.broekhuis@gmail.com</a>&gt;<u></u>&gt; wrote:<br>
<br>
    &gt; Hi all,<br>
    &gt;<br>
    &gt; Basically a simple question: How do I compile a library with<br>
    debug info on OSX?<br>
    &gt;<br>
    &gt; I&#39;ve tried to obvious and set the CMAKE_BUILD_TYPE to Debug. But<br>
    I am either doing something wrong, or this isn&#39;t enough..<br>
    &gt;<br>
    &gt; To check if there is debug info I use dwarfdump, and the output<br>
    always says: .debug_info contents: &lt; EMPTY &gt;<br>
    &gt;<br>
    &gt; What am I doing wrong?<br>
    &gt;<br>
    &gt; --<br>
    &gt; Met vriendelijke groet,<br>
    &gt;<br>
    &gt; Alexander Broekhuis<br>
    &gt; --<br>
    &gt;<br></div>
    &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt;<div class="im"><br>
    &gt;<br>
    &gt; 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>
    &gt;<br>
    &gt; Kitware offers various services to support the CMake community.<br>
    For more information on each offering, please visit:<br>
    &gt;<br>
    &gt; CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/<u></u>support.html</a><br>
    &gt; CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/<u></u>consulting.html</a><br>
    &gt; 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>
    &gt;<br>
    &gt; 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>
    &gt;<br>
    &gt; Follow this link to subscribe/unsubscribe:<br>
    &gt; <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> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt;<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>