mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 18:03:30 +08:00
824ace49ac
Different platforms/systems may install CMake modules into different places. For instance, FreeBSD will install modules into ${PREFIX}/share/cmake/Modules while Linux distributions might install into ${PREFIX}/lib/cmake. This leaves us with a useful abstraction- consumers only need to care about the name of their subdirectory, and only one place needs to be patched to change where this subdirectory lands.
8 lines
251 B
CMake
8 lines
251 B
CMake
function(SetFreeRDPCMakeInstallDir SETVAR subdir)
|
|
if(FREEBSD)
|
|
set(${SETVAR} "${CMAKE_INSTALL_DATAROOTDIR}/cmake/Modules/${subdir}" PARENT_SCOPE)
|
|
else()
|
|
set(${SETVAR} "${CMAKE_INSTALL_LIBDIR}/cmake/${subdir}" PARENT_SCOPE)
|
|
endif()
|
|
endfunction()
|