[CMake] How can I avoid the addition of Debug/Release to the link path?

Joshua Jensen jjensen at workspacewhiz.com
Tue Oct 9 12:00:15 EDT 2007


KSpam wrote:
> This was an annoyance I had with Visual Studio as well, and I was able to work 
> around it fairly easily.  I have CMAKE_CONFIGURATION_TYPES set when I am 
> building in Visual Studio.  I expect that this would be similar for Xcode.  
> All I do is prepend "../" to the output name, and I set the OUTPUT_NAME with 
> SET_TARGET_PROPERTIES.
>
>     SET(outputName "")
>     IF (CMAKE_CONFIGURATION_TYPES)
>         SET(outputName "../${name}")
>     ELSE (CMAKE_CONFIGURATION_TYPES)
>         SET(outputName ${name})
>     ENDIF (CMAKE_CONFIGURATION_TYPES)
>
>     SET_TARGET_PROPERTIES(${targetName} PROPERTIES OUTPUT_NAME ${outputName})
>
> Perhaps this will work for you as well.
>   
As I recall when I was doing Xcode work a number of months back, Xcode 
was unable to load symbols for the resultant application, and the 
debugger was useless.  Not knowing my way around Xcode, I didn't know 
how to fix that.

Josh


More information about the CMake mailing list