CMakeLists.txt
changeset 10012 ed02c7a84612
parent 10009 8c6b05b0a27e
child 10013 9f758c4d746a
     1.1 --- a/CMakeLists.txt	Tue Apr 21 10:19:20 2015 -0400
     1.2 +++ b/CMakeLists.txt	Tue Jan 05 01:25:54 2016 -0500
     1.3 @@ -4,6 +4,17 @@
     1.4  
     1.5  cmake_minimum_required(VERSION 2.8)
     1.6  project(SDL2 C)
     1.7 +
     1.8 +# !!! FIXME: this should probably do "MACOSX_RPATH ON" as a target property
     1.9 +# !!! FIXME:  for the SDL2 shared library (so you get an
    1.10 +# !!! FIXME:  install_name ("soname") of "@rpath/libSDL-whatever.dylib"
    1.11 +# !!! FIXME:  instead of "/usr/local/lib/libSDL-whatever.dylib"), but I'm
    1.12 +# !!! FIXME:  punting for now and leaving the existing behavior. Until this
    1.13 +# !!! FIXME:  properly resolved, this line silences a warning in CMake 3.0+.
    1.14 +# !!! FIXME:  remove it and this comment entirely once the problem is
    1.15 +# !!! FIXME:  properly resolved.
    1.16 +cmake_policy(SET CMP0042 OLD)
    1.17 +
    1.18  include(CheckFunctionExists)
    1.19  include(CheckLibraryExists)
    1.20  include(CheckIncludeFiles)