Quote the characters '"' in post-build commands. If TargetDir==C:\Program

Files\CGAL-3.4\, that is needed.
This commit is contained in:
Laurent Rineau 2008-12-16 14:47:16 +00:00
parent 89a7e5dbb7
commit f3078e4547
6 changed files with 12 additions and 12 deletions

View File

@ -97,8 +97,8 @@ if(OPENGL_FOUND)
)
if ( HAS_CFG_INTDIR )
add_custom_command(TARGET CGAL_ImageIO POST_BUILD COMMAND copy /Y "$(TargetPath)" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL_ImageIO POST_BUILD COMMAND if exist "$(TargetDir)$(TargetName).pdb" copy /Y "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL_ImageIO POST_BUILD COMMAND copy /Y \"$(TargetPath)\" \"$(SolutionDir)lib\" )
add_custom_command(TARGET CGAL_ImageIO POST_BUILD COMMAND if exist \"$(TargetDir)$(TargetName).pdb\" copy /Y \"$(TargetDir)$(TargetName).pdb\" \"$(SolutionDir)lib\" )
endif()
endif()

View File

@ -54,8 +54,8 @@ else()
)
if ( HAS_CFG_INTDIR )
add_custom_command(TARGET CGAL_Core POST_BUILD COMMAND copy /Y "$(TargetDir)CGAL_core*.lib" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL_Core POST_BUILD COMMAND copy /Y "$(TargetDir)CGAL_core*.pdb" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL_Core POST_BUILD COMMAND copy /Y \"$(TargetDir)CGAL_core*.lib\" \"$(SolutionDir)lib\" )
add_custom_command(TARGET CGAL_Core POST_BUILD COMMAND copy /Y \"$(TargetDir)CGAL_core*.pdb\" \"$(SolutionDir)lib\" )
endif()
endif()

View File

@ -105,8 +105,8 @@ if( QT4_FOUND )
)
if ( HAS_CFG_INTDIR )
add_custom_command(TARGET CGAL_Qt4 POST_BUILD COMMAND copy /Y "$(TargetPath)" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL_Qt4 POST_BUILD COMMAND if exist "$(TargetDir)$(TargetName).pdb" copy /Y "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL_Qt4 POST_BUILD COMMAND copy /Y \"$(TargetPath)\" \"$(SolutionDir)lib\" )
add_custom_command(TARGET CGAL_Qt4 POST_BUILD COMMAND if exist \"$(TargetDir)$(TargetName).pdb\" copy /Y \"$(TargetDir)$(TargetName).pdb\" \"$(SolutionDir)lib\" )
endif()
endif()

View File

@ -38,8 +38,8 @@ else()
set(CGAL_LIBRARY "${CGAL_${CMAKE_BUILD_TYPE}_MANGLED_NAME}")
if ( HAS_CFG_INTDIR )
add_custom_command(TARGET CGAL POST_BUILD COMMAND copy /Y "$(TargetPath)" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL POST_BUILD COMMAND if exist "$(TargetDir)$(TargetName).pdb" copy /Y "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL POST_BUILD COMMAND copy /Y \"$(TargetPath)\" \"$(SolutionDir)lib\" )
add_custom_command(TARGET CGAL POST_BUILD COMMAND if exist \"$(TargetDir)$(TargetName).pdb\" copy /Y \"$(TargetDir)$(TargetName).pdb\" \"$(SolutionDir)lib\" )
endif()
endif()

View File

@ -53,8 +53,8 @@ else()
)
if ( HAS_CFG_INTDIR )
add_custom_command(TARGET CGAL_PDB POST_BUILD COMMAND copy /Y "$(TargetPath)" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL_PDB POST_BUILD COMMAND if exist "$(TargetDir)$(TargetName).pdb" copy /Y "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL_PDB POST_BUILD COMMAND copy /Y \"$(TargetPath)\" \"$(SolutionDir)lib\" )
add_custom_command(TARGET CGAL_PDB POST_BUILD COMMAND if exist \"$(TargetDir)$(TargetName).pdb\" copy /Y \"$(TargetDir)$(TargetName).pdb\" \"$(SolutionDir)lib\" )
endif()
endif()

View File

@ -132,8 +132,8 @@ if( QT3_FOUND )
)
if ( HAS_CFG_INTDIR )
add_custom_command(TARGET CGAL_Qt3 POST_BUILD COMMAND copy /Y "$(TargetPath)" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL_Qt3 POST_BUILD COMMAND if exist "$(TargetDir)$(TargetName).pdb" copy /Y "$(TargetDir)$(TargetName).pdb" "$(SolutionDir)lib" )
add_custom_command(TARGET CGAL_Qt3 POST_BUILD COMMAND copy /Y \"$(TargetPath)\" \"$(SolutionDir)lib\" )
add_custom_command(TARGET CGAL_Qt3 POST_BUILD COMMAND if exist \"$(TargetDir)$(TargetName).pdb\" copy /Y \"$(TargetDir)$(TargetName).pdb\" \"$(SolutionDir)lib\" )
endif()
endif()