Skip to content

Commit

Permalink
Name ppc64le directory in the form expected by JNA.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanLennox committed Apr 1, 2024
1 parent a19c05a commit 31df515
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit 31df515

Please sign in to comment.