The issue here is that XCode stores those command line arguments into the same project file that CMake re-generates. I'm pretty sure there's an open bug on this one, but it's a somewhat tricky issue. You might consider using my CreateLaunchers cmake modules, available here [1] - while they don't directly handle the xcode issue (though they handle Visual Studio, which has a similar issue but uses separate files), they do generate launch scripts on all platforms that you can use, and allow you to specify the command line arguments in the build files.
Hope this helps! Ryan [1]https://github.com/rpavlik/cmake-modules On Mon, Dec 20, 2010 at 8:47 AM, Michael Wild <them...@gmail.com> wrote: > On 12/20/2010 03:34 PM, Alessandro Carpi wrote: > > Hi there, > > > > I am using cmake to generate Xcode projects starting from the usual > > CMakeLists.txt > > > > I often modify CMakeLists.txt to add some source, so I have to > re-generate > > the whole project using cmake <path> -G Xcode, but everytime I have to > > manually set up the executable command line arguments from Xcode. > > > > Is there a declaration to add in the CMakeLists.txt in order to generate > a > > project that has executables arguments already defined ? > > > > Thank you very much, > > > > -- > > Alessandro Carpi > > > CMake re-runs itself if you modify the CMakeLists.txt files. Just hit > the build button... > > Michael > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake