1 Fix CMake recipes for libphysfs to support configurable installation locations
4 --- a/CMakeLists.txt.orig 2012-10-23 05:41:04.000000000 +0200
5 +++ b/CMakeLists.txt 2016-04-27 14:24:58.171477010 +0200
8 ENDIF(PHYSFS_BUILD_WX_TEST)
10 +OPTION(CMAKE_INSTALL_LIBDIR "Relative subdir under prefix for libraries." lib)
11 +OPTION(CMAKE_INSTALL_BINDIR "Relative subdir under prefix for binary programs." bin)
12 INSTALL(TARGETS ${PHYSFS_INSTALL_TARGETS}
13 - RUNTIME DESTINATION bin
14 - LIBRARY DESTINATION lib${LIB_SUFFIX}
15 - ARCHIVE DESTINATION lib${LIB_SUFFIX})
16 + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
17 + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
18 + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
19 INSTALL(FILES physfs.h DESTINATION include)