mirror of
https://github.com/reactos/CMake.git
synced 2025-01-10 05:31:02 +00:00
5f30f1754a
Add a RunCMake.GNUInstallDirs test with cases covering various install prefixes. Hard-code the architecture information. Tolerate all platform-specific LIBDIR values. Currently the root prefix is not handled well, but verify the current behavior in the test anyway. This can be addressed with a future change. Inspired-by: Alex Turbov <i.zaufi@gmail.com>
29 lines
554 B
CMake
29 lines
554 B
CMake
set(CMAKE_SIZEOF_VOID_P 8)
|
|
set(CMAKE_LIBRARY_ARCHITECTURE "arch")
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
|
set(CMAKE_SYSTEM_NAME "OpenBSD-Fake")
|
|
endif()
|
|
include(GNUInstallDirs)
|
|
set(dirs
|
|
BINDIR
|
|
DATADIR
|
|
DATAROOTDIR
|
|
DOCDIR
|
|
INCLUDEDIR
|
|
INFODIR
|
|
LIBDIR
|
|
LIBEXECDIR
|
|
LOCALEDIR
|
|
LOCALSTATEDIR
|
|
MANDIR
|
|
SBINDIR
|
|
SHAREDSTATEDIR
|
|
SYSCONFDIR
|
|
)
|
|
foreach(dir ${dirs})
|
|
message("CMAKE_INSTALL_${dir}='${CMAKE_INSTALL_${dir}}'")
|
|
endforeach()
|
|
foreach(dir ${dirs})
|
|
message("CMAKE_INSTALL_FULL_${dir}='${CMAKE_INSTALL_FULL_${dir}}'")
|
|
endforeach()
|