On 08/10/15 02:37, Ruslan Baratov wrote: >>> export CORRESPONDING_DEVICE_PLATFORM_NAME=iphoneos >>> export CORRESPONDING_DEVICE_SDK_NAME=iphoneos9.0 >>> export SDK_NAME=iphonesimulator9.0 >> Could you use those variables to avoid hardcoding iphoneos/simulator in >> the module? > I see CORRESPONDING_*_SDK_NAME variables in Xcode 7.0 but not in 6.4.
At least in Xcode 6.2 I the following variable defined: SUPPORTED_PLATFORMS="iphonesimulator iphoneos" It also seems to be set with Xcode 7.1 SUPPORTED_PLATFORMS="watchsimulator watchos" SUPPORTED_PLATFORMS="appletvos appletvsimulator" I'd really like to avoid coding any form of database into CMake. Same for the architectures: In the end the user (or the Xcode default) sets a list of VALID_ARCHS for device and simulator. Maybe you could use this for filtering. I'll reserve a day next week to exclusively work on this topic. Thanks, Gregor -- 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