<div dir="ltr">Hi,<div><br></div><div style>I am using CMake to build a solution consisting of several projects (using Visual Studio lingo here) where some of them are libraries, some executables. Some executables can run only on the OS (i.e. OSX and Windows) and will not work correctly on iOS. </div>
<div style><br></div><div style>We have one such executable that manipulates a version file in the repository each time there is a build. This executable must be part of the same XCode project, otherwise it will not run. I am aware that I can separate this out into a new project and have CMake run the file but that requires more maintainance (as the user now has to not only create/build the main project via CMake but also the above mentioned project). </div>
<div style><br></div><div style>In CMake for iOS builds, I set CMAKE_OSX_SYSROOT in the root CMakeLists.txt file to iphoneos. It turns out I cannot change it again (for the above mentioned project). XCode is capable of allowing targets to be a mixture of iOS and OSX. Is that possible with CMake?</div>
<div style><br></div><div style>Thanks,</div><div style>Saad</div></div>