|
|
@ -1041,6 +1041,12 @@ MACRO(NL_MAKE_ABSOLUTE_PREFIX NAME_RELATIVE NAME_ABSOLUTE)
|
|
|
|
ENDMACRO(NL_MAKE_ABSOLUTE_PREFIX)
|
|
|
|
ENDMACRO(NL_MAKE_ABSOLUTE_PREFIX)
|
|
|
|
|
|
|
|
|
|
|
|
MACRO(NL_SETUP_PREFIX_PATHS)
|
|
|
|
MACRO(NL_SETUP_PREFIX_PATHS)
|
|
|
|
|
|
|
|
IF(TARGET_X64 AND WIN32)
|
|
|
|
|
|
|
|
SET(LIB_SUFFIX "64")
|
|
|
|
|
|
|
|
ELSE()
|
|
|
|
|
|
|
|
SET(LIB_SUFFIX "")
|
|
|
|
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
## Allow override of install_prefix/etc path.
|
|
|
|
## Allow override of install_prefix/etc path.
|
|
|
|
IF(NOT NL_ETC_PREFIX)
|
|
|
|
IF(NOT NL_ETC_PREFIX)
|
|
|
|
IF(WITH_UNIX_STRUCTURE)
|
|
|
|
IF(WITH_UNIX_STRUCTURE)
|
|
|
@ -1064,7 +1070,7 @@ MACRO(NL_SETUP_PREFIX_PATHS)
|
|
|
|
## Allow override of install_prefix/sbin path.
|
|
|
|
## Allow override of install_prefix/sbin path.
|
|
|
|
IF(NOT NL_SBIN_PREFIX)
|
|
|
|
IF(NOT NL_SBIN_PREFIX)
|
|
|
|
IF(WITH_UNIX_STRUCTURE)
|
|
|
|
IF(WITH_UNIX_STRUCTURE)
|
|
|
|
SET(NL_SBIN_PREFIX "sbin" CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
SET(NL_SBIN_PREFIX "sbin${LIB_SUFFIX}" CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
SET(NL_SBIN_PREFIX "." CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
SET(NL_SBIN_PREFIX "." CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
@ -1074,7 +1080,7 @@ MACRO(NL_SETUP_PREFIX_PATHS)
|
|
|
|
## Allow override of install_prefix/bin path.
|
|
|
|
## Allow override of install_prefix/bin path.
|
|
|
|
IF(NOT NL_BIN_PREFIX)
|
|
|
|
IF(NOT NL_BIN_PREFIX)
|
|
|
|
IF(WITH_UNIX_STRUCTURE)
|
|
|
|
IF(WITH_UNIX_STRUCTURE)
|
|
|
|
SET(NL_BIN_PREFIX "bin" CACHE PATH "Installation path for tools and applications.")
|
|
|
|
SET(NL_BIN_PREFIX "bin${LIB_SUFFIX}" CACHE PATH "Installation path for tools and applications.")
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
SET(NL_BIN_PREFIX "." CACHE PATH "Installation path for tools and applications.")
|
|
|
|
SET(NL_BIN_PREFIX "." CACHE PATH "Installation path for tools and applications.")
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
@ -1086,7 +1092,7 @@ MACRO(NL_SETUP_PREFIX_PATHS)
|
|
|
|
IF(LIBRARY_ARCHITECTURE)
|
|
|
|
IF(LIBRARY_ARCHITECTURE)
|
|
|
|
SET(NL_LIB_PREFIX "lib/${LIBRARY_ARCHITECTURE}" CACHE PATH "Installation path for libraries.")
|
|
|
|
SET(NL_LIB_PREFIX "lib/${LIBRARY_ARCHITECTURE}" CACHE PATH "Installation path for libraries.")
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
SET(NL_LIB_PREFIX "lib" CACHE PATH "Installation path for libraries.")
|
|
|
|
SET(NL_LIB_PREFIX "lib${LIB_SUFFIX}" CACHE PATH "Installation path for libraries.")
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
NL_MAKE_ABSOLUTE_PREFIX(NL_LIB_PREFIX NL_LIB_ABSOLUTE_PREFIX)
|
|
|
|
NL_MAKE_ABSOLUTE_PREFIX(NL_LIB_PREFIX NL_LIB_ABSOLUTE_PREFIX)
|
|
|
@ -1097,7 +1103,11 @@ MACRO(NL_SETUP_PREFIX_PATHS)
|
|
|
|
IF(LIBRARY_ARCHITECTURE)
|
|
|
|
IF(LIBRARY_ARCHITECTURE)
|
|
|
|
SET(NL_DRIVER_PREFIX "lib/${LIBRARY_ARCHITECTURE}/nel" CACHE PATH "Installation path for drivers.")
|
|
|
|
SET(NL_DRIVER_PREFIX "lib/${LIBRARY_ARCHITECTURE}/nel" CACHE PATH "Installation path for drivers.")
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
SET(NL_DRIVER_PREFIX "lib/nel" CACHE PATH "Installation path for drivers.")
|
|
|
|
IF(WIN32)
|
|
|
|
|
|
|
|
SET(NL_DRIVER_PREFIX "bin${LIB_SUFFIX}" CACHE PATH "Installation path for drivers.")
|
|
|
|
|
|
|
|
ELSE()
|
|
|
|
|
|
|
|
SET(NL_DRIVER_PREFIX "lib${LIB_SUFFIX}/nel" CACHE PATH "Installation path for drivers.")
|
|
|
|
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
SET(NL_DRIVER_PREFIX "." CACHE PATH "Installation path for drivers.")
|
|
|
|
SET(NL_DRIVER_PREFIX "." CACHE PATH "Installation path for drivers.")
|
|
|
@ -1130,7 +1140,7 @@ MACRO(RYZOM_SETUP_PREFIX_PATHS)
|
|
|
|
## Allow override of install_prefix/sbin path.
|
|
|
|
## Allow override of install_prefix/sbin path.
|
|
|
|
IF(NOT RYZOM_SBIN_PREFIX)
|
|
|
|
IF(NOT RYZOM_SBIN_PREFIX)
|
|
|
|
IF(WITH_UNIX_STRUCTURE)
|
|
|
|
IF(WITH_UNIX_STRUCTURE)
|
|
|
|
SET(RYZOM_SBIN_PREFIX "sbin" CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
SET(RYZOM_SBIN_PREFIX "sbin${LIB_SUFFIX}" CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
SET(RYZOM_SBIN_PREFIX "." CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
SET(RYZOM_SBIN_PREFIX "." CACHE PATH "Installation path for admin tools and services.")
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
@ -1140,7 +1150,7 @@ MACRO(RYZOM_SETUP_PREFIX_PATHS)
|
|
|
|
## Allow override of install_prefix/bin path.
|
|
|
|
## Allow override of install_prefix/bin path.
|
|
|
|
IF(NOT RYZOM_BIN_PREFIX)
|
|
|
|
IF(NOT RYZOM_BIN_PREFIX)
|
|
|
|
IF(WITH_UNIX_STRUCTURE)
|
|
|
|
IF(WITH_UNIX_STRUCTURE)
|
|
|
|
SET(RYZOM_BIN_PREFIX "bin" CACHE PATH "Installation path for tools.")
|
|
|
|
SET(RYZOM_BIN_PREFIX "bin${LIB_SUFFIX}" CACHE PATH "Installation path for tools.")
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
SET(RYZOM_BIN_PREFIX "." CACHE PATH "Installation path for tools and applications.")
|
|
|
|
SET(RYZOM_BIN_PREFIX "." CACHE PATH "Installation path for tools and applications.")
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
@ -1152,7 +1162,7 @@ MACRO(RYZOM_SETUP_PREFIX_PATHS)
|
|
|
|
IF(LIBRARY_ARCHITECTURE)
|
|
|
|
IF(LIBRARY_ARCHITECTURE)
|
|
|
|
SET(RYZOM_LIB_PREFIX "lib/${LIBRARY_ARCHITECTURE}" CACHE PATH "Installation path for libraries.")
|
|
|
|
SET(RYZOM_LIB_PREFIX "lib/${LIBRARY_ARCHITECTURE}" CACHE PATH "Installation path for libraries.")
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
SET(RYZOM_LIB_PREFIX "lib" CACHE PATH "Installation path for libraries.")
|
|
|
|
SET(RYZOM_LIB_PREFIX "lib${LIB_SUFFIX}" CACHE PATH "Installation path for libraries.")
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
NL_MAKE_ABSOLUTE_PREFIX(RYZOM_LIB_PREFIX RYZOM_LIB_ABSOLUTE_PREFIX)
|
|
|
|
NL_MAKE_ABSOLUTE_PREFIX(RYZOM_LIB_PREFIX RYZOM_LIB_ABSOLUTE_PREFIX)
|
|
|
|