diff --git a/CGALimageIO/src/CGALimageIO/CMakeLists.txt b/CGALimageIO/src/CGALimageIO/CMakeLists.txt index 0b6d2f7bd8e..a1f7dcb3a6b 100644 --- a/CGALimageIO/src/CGALimageIO/CMakeLists.txt +++ b/CGALimageIO/src/CGALimageIO/CMakeLists.txt @@ -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() diff --git a/Core/src/CGALCore/CMakeLists.txt b/Core/src/CGALCore/CMakeLists.txt index 89669e5efd6..bdab4bb6047 100644 --- a/Core/src/CGALCore/CMakeLists.txt +++ b/Core/src/CGALCore/CMakeLists.txt @@ -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() diff --git a/GraphicsView/src/CGALQt4/CMakeLists.txt b/GraphicsView/src/CGALQt4/CMakeLists.txt index 737cb83cbd9..04e7bf4dc3c 100644 --- a/GraphicsView/src/CGALQt4/CMakeLists.txt +++ b/GraphicsView/src/CGALQt4/CMakeLists.txt @@ -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() diff --git a/Installation/src/CGAL/CMakeLists.txt b/Installation/src/CGAL/CMakeLists.txt index 0ec83b2a2cd..e0f392c7ef0 100644 --- a/Installation/src/CGAL/CMakeLists.txt +++ b/Installation/src/CGAL/CMakeLists.txt @@ -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() diff --git a/PDB/src/CGALPDB/CMakeLists.txt b/PDB/src/CGALPDB/CMakeLists.txt index 7861df9f740..e78acaa8f80 100644 --- a/PDB/src/CGALPDB/CMakeLists.txt +++ b/PDB/src/CGALPDB/CMakeLists.txt @@ -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() diff --git a/Qt_widget/src/CGALQt/CMakeLists.txt b/Qt_widget/src/CGALQt/CMakeLists.txt index 68f194a226f..ab1ee9bbc5c 100644 --- a/Qt_widget/src/CGALQt/CMakeLists.txt +++ b/Qt_widget/src/CGALQt/CMakeLists.txt @@ -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()