As on my previous my post, I got a bundle with SDL.framework embeeded. <div>On OS X, you can either use .framework and .dylib binaries. So, I got to use the BundleUtilities macro. </div><div><br></div><div>If CMake doesn&#39;t find the .framework, all works ok: I get 3 libraries (libSDL..) on Content/MacOS folder.</div>
<div>If CMake finds the .framework, it just doesn&#39;t know (or it seems) how to handle it. What can I do?</div><div><br></div><div>Here&#39;s the CMakeLists.txt: </div><div><br></div><div><div>cmake_minimum_required(VERSION 2.8)</div>
<div><br></div><div>project(openvolt)</div><div><br></div><div>set(APP_NAME OpenVolt)</div><div><br></div><div>include(FindSDL)</div><div>include(FindOpenGL)</div><div><br></div><div>include_directories(${SDL_INCLUDE_DIR})</div>
<div><br></div><div>add_executable(${APP_NAME} MACOSX_BUNDLE main.cpp)</div><div><br></div><div>target_link_libraries(${APP_NAME} ${SDL_LIBRARY} ${OPENGL_LIBRARIES})</div><div><br></div><div>string(REPLACE &quot;-framework Cocoa&quot; &quot;&quot; DIRS ${SDL_LIBRARY})</div>
<div>install(CODE &quot;</div><div>  include(BundleUtilities)</div><div>  fixup_bundle(\&quot;${openvolt_BINARY_DIR}/${APP_NAME}.app\&quot; \&quot;\&quot; \&quot;${DIRS}\&quot;)</div><div>&quot; COMPONENT Runtime)</div><div>
<br></div><div><br></div><div>And here&#39;s the output when I do &#39;make install&#39;: </div><div><br></div><div><div>[100%] Built target OpenVolt</div><div>Install the project...</div><div>-- Install configuration: &quot;&quot;</div>
<div>-- fixup_bundle</div><div>--   app=&#39;/Users/frarees/openvolt/build/OpenVolt.app&#39;</div><div>--   libs=&#39;&#39;</div><div>--   dirs=&#39;/Library/Frameworks/SDL.framework&#39;</div><div>-- fixup_bundle: preparing...</div>
<div>-- warning: embedded item does not exist &#39;/Users/frarees/openvolt/build/OpenVolt.app/Contents/Frameworks/SDL.framework/Versions/1.3/SDL&#39;</div><div>-- </div><div>warning: cannot resolve item &#39;@executable_path/../Frameworks/SDL.framework/Versions/1.3/SDL&#39;</div>
<div><br></div><div>  possible problems:</div><div>    need more directories?</div><div>    need to use InstallRequiredSystemLibraries?</div><div>    run in install tree instead of build tree?</div><div><br></div><div>-- warning: embedded item does not exist &#39;/Users/frarees/openvolt/build/OpenVolt.app/Contents/Frameworks/SDL.framework/Versions/1.3/SDL&#39;</div>
<div>-- </div><div>warning: cannot resolve item &#39;@executable_path/../Frameworks/SDL.framework/Versions/1.3/SDL&#39;</div><div><br></div><div>  possible problems:</div><div>    need more directories?</div><div>    need to use InstallRequiredSystemLibraries?</div>
<div>    run in install tree instead of build tree?</div><div><br></div><div>-- fixup_bundle: copying...</div><div>-- 1/4: *NOT* copying &#39;/Users/frarees/openvolt/build/OpenVolt.app/Contents/MacOS/OpenVolt&#39;</div><div>
-- 2/4: copying &#39;@executable_path/../Frameworks/SDL.framework/Versions/1.3/SDL&#39;</div><div>-- fixup_bundle: fixing...</div><div>-- 3/4: fixing up &#39;/Users/frarees/openvolt/build/OpenVolt.app/Contents/MacOS/OpenVolt&#39;</div>
<div>-- 4/4: fixing up &#39;/Users/frarees/openvolt/build/OpenVolt.app/Contents/Frameworks/SDL.framework/Versions/1.3/SDL&#39;</div><div>-- fixup_bundle: cleaning up...</div><div>-- fixup_bundle: verifying...</div><div>-- ===========================================================================</div>
<div>-- Analyzing app=&#39;/Users/frarees/openvolt/build/OpenVolt.app&#39;</div><div>-- bundle=&#39;/Users/frarees/openvolt/build/OpenVolt.app&#39;</div><div>-- executable=&#39;/Users/frarees/openvolt/build/OpenVolt.app/Contents/MacOS/OpenVolt&#39;</div>
<div>-- valid=&#39;1&#39;</div><div>-- executable file 1: /Users/frarees/openvolt/build/OpenVolt.app/Contents/MacOS/OpenVolt</div><div>-- warning: embedded item does not exist &#39;/Users/frarees/openvolt/build/OpenVolt.app/Contents/Frameworks/SDL.framework/Versions/1.3/SDL&#39;</div>
<div>-- </div><div>warning: cannot resolve item &#39;@executable_path/../Frameworks/SDL.framework/Versions/1.3/SDL&#39;</div><div><br></div><div>  possible problems:</div><div>    need more directories?</div><div>    need to use InstallRequiredSystemLibraries?</div>
<div>    run in install tree instead of build tree?</div><div><br></div><div>-- verified=&#39;1&#39;</div><div>-- info=&#39;Verified 1 executable files in &#39;/Users/frarees/openvolt/build/OpenVolt.app&#39;&#39;</div><div>
-- </div><div>-- verified=&#39;1&#39;</div><div>-- info=&#39;&#39;</div><div>-- </div><div>-- fixup_bundle: done</div><div><br></div></div></div>