[cmake-developers] [CMake 0015346]: Xcode generator default target is no longer "ALL_BUILD"
Mantis Bug Tracker
mantis at public.kitware.com
Tue Jan 13 05:41:49 EST 2015
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15346
======================================================================
Reported By: Daniele E. Domenichelli
Assigned To:
======================================================================
Project: CMake
Issue ID: 15346
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-01-13 11:41 CET
Last Modified: 2015-01-13 11:41 CET
======================================================================
Summary: Xcode generator default target is no longer
"ALL_BUILD"
Description:
Since CMake 3.1, the order of the targets is changed and therefore the default
target for Xcode generator is no longer "ALL_BUILD" if there is at least one
install command. Also some other custom targets were moved to the top of the
list.
Steps to Reproduce:
Using this small project:
cmake_minimum_required(VERSION 2.8.9)
project(FOO)
install(CODE "message(FATAL_ERROR \"This fatal error should not happen\")")
- CMake 3.0.2
* "xcodebuild -list" prints
Targets:
ALL_BUILD
ZERO_CHECK
install
* "xcodebuild" executes the "ALL_BUILD" target
* "cmake --build ." executes the "ALL_BUILD" target
- CMake 3.1
* "xcodebuild -list" prints
Targets:
install
ALL_BUILD
ZERO_CHECK
* "xcodebuild" executes the "install" target (and fails)
* "cmake --build ." executes the "ALL_BUILD" target
Building the project with "cmake --build ." still works because it calls the
correct target, but "xcodebuild" fails because the "install" target is called
instead of the "ALL_BUILD" one.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-01-13 11:41 Daniele E. DomenichelliNew Issue
======================================================================
More information about the cmake-developers
mailing list