SDL_library is not a source file, so don&#39;t call:<div>  <span class="Apple-style-span" style="font-family: Helvetica, sans-serif; font-size: medium; border-collapse: collapse; ">set_source_files_properties</span><br>on it...<div>
<br></div><div>That should eliminate the spurious content copy attempt...</div><div><br></div><div><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 6:17 PM, Francisco Requena <span dir="ltr">&lt;<a href="mailto:the.adx@gmail.com">the.adx@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span style="font-family:Helvetica;font-size:medium">Hi, <br><br>I&#39;m trying to develop a simple application using SDL on OS X. Here&#39;s my CMakeLists.txt: <br>
<br>cmake_minimum_required(VERSION 2.8)<br>
<br>project(newapp)<br><br>include(FindSDL)<br>include(FindOpenGL)<br><br>include_directories(${SDL_INCLUDE_DIR})<br><br>string(REPLACE &quot;-framework Cocoa&quot; &quot;&quot; SDL_LIBRARY ${SDL_LIBRARY})<br><br>set_source_files_properties(${SDL_LIBRARY} PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks)<br>

<br>add_executable(myapp MACOSX_BUNDLE main.cpp ${SDL_LIBRARY})<br><br>target_link_libraries(myapp ${SDL_LIBRARY} SDLmain &quot;-framework Cocoa&quot;)<br><br>Then I do: <br>cmake<br>make<br><br>And that&#39;s what I get: <br>

Error copying file &quot;/Library/Frameworks/SDL.framework&quot; to &quot;myapp.app/Contents/Frameworks/SDL.framework&quot;.<br>make[2]: *** [myapp.app/Contents/Frameworks/SDL.framework] Error 1<br>make[1]: *** [CMakeFiles/myapp.dir/all] Error 2<br>

make: *** [all] Error 2<br><br>However, if I do: <br>cmake -G Xcode<br><br>And then I open the generated Xcode project and do compile, all is working properly. <br>What should I do?<br>It&#39;s just a bug?<br><br>Thanks,<br>

Franciso Requena. <br><br><br>I use the lastest CMake version (git cloned). It&#39;s 2.9.20100304.</span>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div></div>