[cmake-developers] [CMake 0013576]: Empty CMAKE_BUILD_TYPE in VS2012

Mantis Bug Tracker mantis at public.kitware.com
Fri Oct 5 17:14:47 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13576 
====================================================================== 
Reported By:                Anders Elfgren
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13576
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-10-05 17:14 EDT
Last Modified:              2012-10-05 17:14 EDT
====================================================================== 
Summary:                    Empty CMAKE_BUILD_TYPE in VS2012
Description: 
As part of my build step I'm copying a dll into a project's build folder like
this:

ADD_CUSTOM_COMMAND(
    TARGET MyProject
    POST_BUILD
    COMMAND ${CMAKE_COMMAND} -E copy
${DataLibrary_BINARY_DIR}/Release/DataLibrary.dll
${MyProject_BINARY_DIR}/${CMAKE_BUILD_TYPE}/datalibrary.dll
)

But the commands ends up looking like:

C:/work/pd_engine/local/cmake/vs2012/external/datalibrary/Release/DataLibrary.dll
C:/work/pd_engine/local/cmake/vs2012/units/myproject//datalibrary.dll

Notice the //.

Steps to Reproduce: 
I assume this should happen at all times and as such should be easy to reproduce
by simply trying to use CMAKE_BUILD_TYPE together with VS11.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-10-05 17:14 Anders Elfgren New Issue                                    
======================================================================




More information about the cmake-developers mailing list