[cmake-developers] [CMake 0014691]: Post build phase to delete directory fails in Xcode project
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jan 9 14:20:53 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14691
======================================================================
Reported By: tron_thomas
Assigned To:
======================================================================
Project: CMake
Issue ID: 14691
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-01-09 14:20 EST
Last Modified: 2014-01-09 14:20 EST
======================================================================
Summary: Post build phase to delete directory fails in Xcode
project
Description:
If someone creates a post build phase command to delete a directory, that
command will fail when executed in Xcode
Steps to Reproduce:
Create a very simple Hello World code module. Create a directory that can be
deleted
Use a CMakeLists.txt file like the following to create an Xcode project to build
the Hello World application:
cmake_minimum_required (VERSION 2.8)
project (HelloWorld)
add_executable (HelloWorld HelloWorld.cpp)
add_custom_command (
TARGET HelloWorld
POST_BUILD
COMMAND cmake -E remove_directory <Path to directory that will be deleted>
)
Create and build the Xcode project.
Expected:
The project should build without errors
Actual:
Even though the directory exists and the path to it is valid, the following
error will occur in Xcode
make: cmake: No such file or directory
Additional Information:
Using Xcode version 4.6.3
This problem will not happen if someone creates an UNIX makefile project instead
of Xcode. Everything builds successfully
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-01-09 14:20 tron_thomas New Issue
======================================================================
More information about the cmake-developers
mailing list