View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010276CMakeCMakepublic2010-02-11 08:502011-04-04 12:00
ReporterFritz Dierks 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in VersionCMake 2.8.4 
Summary0010276: PREFIX "..\" hack does not work for VisualStudio 10.0 any more
DescriptionUsing
  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
TagsNo tags attached.
Attached Files

 Relationships
related to 0009163closedBrad King A way to set different output paths for MSVC Debug/Release configurations 
related to 0010040closedDavid Cole VS2010 generator does not handle project names containing periods ('.') 

  Notes
(0019511)
Bill Hoffman (manager)
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 (manager)
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 (manager)
2011-04-04 12:00

Closing resolved issues that have not been updated in more than 3 months.

 Issue History
Date Modified Username Field Change
2010-02-11 08:50 Fritz Dierks New Issue
2010-02-11 13:07 Bill Hoffman Relationship added related to 0009163
2010-02-11 13:08 Bill Hoffman Note Added: 0019511
2010-02-11 13:09 Bill Hoffman Status new => assigned
2010-02-11 13:09 Bill Hoffman Assigned To => Bill Hoffman
2010-08-29 01:37 Kovarththanan Rajaratnam Category CCMake => CMake
2010-12-17 12:59 David Cole Note Added: 0024241
2010-12-17 12:59 David Cole Status assigned => resolved
2010-12-17 12:59 David Cole Fixed in Version => CMake 2.8.4
2010-12-17 12:59 David Cole Resolution open => no change required
2010-12-17 12:59 David Cole Relationship added related to 0010040
2011-04-04 12:00 David Cole Note Added: 0026070
2011-04-04 12:00 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team