CMake, SDL on Mac OS X, "can't find -lSDLmain" <p>Following the instructions <a href="http://content.gpwiki.org/index.php/SDL%3aTutorials%3aSetup#CMake" rel="nofollow">here</a>, I've set up a <code>CMakeLists.txt</code>:</p> <pre><code>Find_Package (SDL REQUIRED) Find_Package (SDL_image REQUIRED) link_libraries ( ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} SDLmain ) </code></pre> <p>When running <code>cmake</code>, I get the following error:</p> <pre><code>ld: library not found for -lSDLmain collect2: error: ld returned 1 exit status make[2]: *** [src/GameOfLife] Error 1 </code></pre> <p>Running <code>g++</code> by hand gives the same error:</p> <pre><code>$ g++-4.7 -std=c++0x ../src/*.cpp -lSDLmain ld: library not found for -lSDLmain </code></pre> <p>How do I fix this?</p>