|
@@ -2,7 +2,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
|
|
message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the SDL source code and call cmake from there")
|
|
|
endif()
|
|
|
|
|
|
-cmake_minimum_required(VERSION 2.8)
|
|
|
+cmake_minimum_required(VERSION 2.8.5)
|
|
|
project(SDL2 C)
|
|
|
|
|
|
# !!! FIXME: this should probably do "MACOSX_RPATH ON" as a target property
|
|
@@ -26,6 +26,7 @@ include(CheckTypeSize)
|
|
|
include(CheckStructHasMember)
|
|
|
include(CMakeDependentOption)
|
|
|
include(FindPkgConfig)
|
|
|
+include(GNUInstallDirs)
|
|
|
set(CMAKE_MODULE_PATH "${SDL2_SOURCE_DIR}/cmake")
|
|
|
include(${SDL2_SOURCE_DIR}/cmake/macros.cmake)
|
|
|
include(${SDL2_SOURCE_DIR}/cmake/sdlchecks.cmake)
|
|
@@ -1608,7 +1609,7 @@ if(NOT (WINDOWS OR CYGWIN))
|
|
|
endif()
|
|
|
install(PROGRAMS ${SDL2_BINARY_DIR}/sdl2-config DESTINATION bin)
|
|
|
# TODO: what about the .spec file? Is it only needed for RPM creation?
|
|
|
- install(FILES "${SDL2_SOURCE_DIR}/sdl2.m4" DESTINATION "share/aclocal")
|
|
|
+ install(FILES "${SDL2_SOURCE_DIR}/sdl2.m4" DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/aclocal")
|
|
|
endif()
|
|
|
|
|
|
##### Uninstall target #####
|