MantisBT - CMake
View Issue Details
0010276CMakeCMakepublic2010-02-11 08:502011-04-04 12:00
Fritz Dierks 
Bill Hoffman 
normalmajoralways
closedno change required 
CMake-2-8 
CMake 2.8.4 
0010276: PREFIX "..\" hack does not work for VisualStudio 10.0 any more
Using
  PREFIX="..\".
  RELEASE_SUFFIX=""
  DEBUG_SUFFIX="d"
one can configure CMake in a way that VisualStudio does not output EXEs and DLLs as usual using intermediate directories like this
  MyProject/Release/MyProject.exe
  MyProject/Debug/MyProject.exe
but instead puts the output in one directory like this
  MyProject/MyProject.exe
  MyProject/MyProjectd.exe

This so called prefix hack works fine for VC71, VC80, and VC90 but not any more for VC100.

Question: is there a different way with v2.8 to get rid of VisualStudio's intermediate directories? Or could the prefix hack please be restored?

Any help is apprechiated.
Thanks - Fritz
No tags attached.
related to 0009163closed Brad King A way to set different output paths for MSVC Debug/Release configurations 
related to 0010040closed David Cole VS2010 generator does not handle project names containing periods ('.') 
Issue History
2010-02-11 08:50Fritz DierksNew Issue
2010-02-11 13:07Bill HoffmanRelationship addedrelated to 0009163
2010-02-11 13:08Bill HoffmanNote Added: 0019511
2010-02-11 13:09Bill HoffmanStatusnew => assigned
2010-02-11 13:09Bill HoffmanAssigned To => Bill Hoffman
2010-08-29 01:37Kovarththanan RajaratnamCategoryCCMake => CMake
2010-12-17 12:59David ColeNote Added: 0024241
2010-12-17 12:59David ColeStatusassigned => resolved
2010-12-17 12:59David ColeFixed in Version => CMake 2.8.4
2010-12-17 12:59David ColeResolutionopen => no change required
2010-12-17 12:59David ColeRelationship addedrelated to 0010040
2011-04-04 12:00David ColeNote Added: 0026070
2011-04-04 12:00David ColeStatusresolved => closed

Notes
(0019511)
Bill Hoffman   
2010-02-11 13:08   
I have put in a link to the bug that offers the new way to do this.

SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BULLET_PHYSICS_SOURCE_DIR})
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${BULLET_PHYSICS_SOURCE_DIR})
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${BULLET_PHYSICS_SOURCE_DIR})
(0024241)
David Cole   
2010-12-17 12:59   
Please see the notes in this issue itself, plus the related bug 0009163 to see how you can use the per-configuration output directories in CMake 2.8.2 or later.

See also this note from Brad King in another related bug: 0010040:0024238

That's the way to achieve the goal without resorting to the "../ prefix hack"

Thanks.
(0026070)
David Cole   
2011-04-04 12:00   
Closing resolved issues that have not been updated in more than 3 months.