From 1c037e07be8a6fe39844645d0ea2c2ada5b411e9 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Mon, 29 Jan 2018 17:20:51 +0000 Subject: [PATCH] CLion: Fixed a hardcoded cmake executable name --- .../Projucer/Source/ProjectSaving/jucer_ProjectExport_CLion.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CLion.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CLion.h index 7b6bdac102..e3e8e5d7ca 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CLion.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_CLion.h @@ -1037,8 +1037,8 @@ private: auto productFilename = binaryName + (targetAttributeKeys.contains ("WRAPPER_EXTENSION") ? "." + targetAttributes["WRAPPER_EXTENSION"] : String()); auto productPath = (installPath + productFilename).quoted(); out << "add_custom_command (TARGET " << targetVarName << " POST_BUILD" << newLine - << " COMMAND cmake -E remove_directory " << productPath << newLine - << " COMMAND cmake -E copy_directory \"${CMAKE_BINARY_DIR}/" << productFilename << "\" " << productPath << newLine + << " COMMAND ${CMAKE_COMMAND} -E remove_directory " << productPath << newLine + << " COMMAND ${CMAKE_COMMAND} -E copy_directory \"${CMAKE_BINARY_DIR}/" << productFilename << "\" " << productPath << newLine << " COMMENT \"Copying \\\"" << productFilename << "\\\" to \\\"" << installPath.unquoted() << "\\\"\"" << newLine << ")" << newLine << newLine; }