On 07-Aug-15 11:31, Gregor Jasny wrote:
Hi,

On 07/08/15 00:43, Ruslan Baratov via cmake-developers wrote:
Hi,

I'm thinking about fixing bug
http://public.kitware.com/Bug/view.php?id=12506 and before I go deeper
in CMake internals just want to ask is there any work-in-progress
attempts already or hints/directions of how it can be done?

I started to look into this and as far as I remember built a PoC for the case where you do not build Simulator and non-Simulator within the same Xcode project. But I never found the time to write down a summary of that complicated topic.

Currently I work around by calling from my build script:
"${CMAKE}" -DBUILD_TYPE=${CONFIG} -P "${BUILD_DIR}/cmake_install.cmake"

I will try to attach something to the bug report within the next days.

Thanks,
Gregor

Hi,

I've tried it with simple example and have an error:

> rm -rf _builds
> cmake -H. -B_builds -GXcode -DCMAKE_INSTALL_PREFIX="`pwd`/_install"
> cmake -DBUILD_TYPE=Debug -P _builds/cmake_install.cmake
-- Install configuration: "Debug"
CMake Error at _builds/cmake_install.cmake:32 (file):
  file INSTALL cannot find
  "/.../_builds/Debug$(EFFECTIVE_PLATFORM_NAME)/libfoo.a".

Executable runs fine on device. Library builds fine too but install step fail. See CMakeLists.txt in attachment.

What generator and toolchain are you using?

Ruslo
cmake_minimum_required(VERSION 3.0)
project(Foo)

set(CMAKE_OSX_SYSROOT "iphoneos")
set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator")

set(CMAKE_MACOSX_BUNDLE YES)
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer")

set(MACOSX_BUNDLE_GUI_IDENTIFIER com.example)

add_executable(foo_exe foo.cpp)
add_library(foo foo.cpp)

install(TARGETS foo DESTINATION lib)
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to