diff --git a/CMakeLists.txt b/CMakeLists.txt index e16c9c7..71bded8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,11 +10,13 @@ endif () if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64") - set(JITSI_SYSTEM_PROCESSOR "x86-64") + set(JNA_SYSTEM_PROCESSOR "x86-64") + elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ppc64el") + set(JNA_SYSTEM_PROCESSOR "ppc64le") else () - set(JITSI_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR}) + set(JNA_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR}) endif () - set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/src/main/resources/${CMAKE_SYSTEM_NAME}-${JITSI_SYSTEM_PROCESSOR}" CACHE PATH "default install path" FORCE) + set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/src/main/resources/${CMAKE_SYSTEM_NAME}-${JNA_SYSTEM_PROCESSOR}" CACHE PATH "default install path" FORCE) string(TOLOWER ${CMAKE_INSTALL_PREFIX} CMAKE_INSTALL_PREFIX) message(STATUS "CMAKE_INSTALL_PREFIX not set, defaulting to >${CMAKE_INSTALL_PREFIX}<") endif ()