CMakeLists.txt
changeset 10447 2e197b249d68
parent 10424 543367861d69
child 10458 b24c67bbb02f
     1.1 --- a/CMakeLists.txt	Sat Oct 01 15:04:13 2016 -0700
     1.2 +++ b/CMakeLists.txt	Sat Oct 01 15:11:18 2016 -0700
     1.3 @@ -2,7 +2,7 @@
     1.4    message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the SDL source code and call cmake from there")
     1.5  endif()
     1.6  
     1.7 -cmake_minimum_required(VERSION 2.8)
     1.8 +cmake_minimum_required(VERSION 2.8.5)
     1.9  project(SDL2 C)
    1.10  
    1.11  # !!! FIXME: this should probably do "MACOSX_RPATH ON" as a target property
    1.12 @@ -26,6 +26,7 @@
    1.13  include(CheckStructHasMember)
    1.14  include(CMakeDependentOption)
    1.15  include(FindPkgConfig)
    1.16 +include(GNUInstallDirs)
    1.17  set(CMAKE_MODULE_PATH "${SDL2_SOURCE_DIR}/cmake")
    1.18  include(${SDL2_SOURCE_DIR}/cmake/macros.cmake)
    1.19  include(${SDL2_SOURCE_DIR}/cmake/sdlchecks.cmake)
    1.20 @@ -1608,7 +1609,7 @@
    1.21    endif()
    1.22    install(PROGRAMS ${SDL2_BINARY_DIR}/sdl2-config DESTINATION bin)
    1.23    # TODO: what about the .spec file? Is it only needed for RPM creation?
    1.24 -  install(FILES "${SDL2_SOURCE_DIR}/sdl2.m4" DESTINATION "share/aclocal")
    1.25 +  install(FILES "${SDL2_SOURCE_DIR}/sdl2.m4" DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/aclocal")
    1.26  endif()
    1.27  
    1.28  ##### Uninstall target #####