diff options
Diffstat (limited to 'cmake/SetFreeRDPCMakeInstallDir.cmake')
-rw-r--r-- | cmake/SetFreeRDPCMakeInstallDir.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/SetFreeRDPCMakeInstallDir.cmake b/cmake/SetFreeRDPCMakeInstallDir.cmake new file mode 100644 index 0000000..125e2f4 --- /dev/null +++ b/cmake/SetFreeRDPCMakeInstallDir.cmake @@ -0,0 +1,7 @@ +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() |