Skip to content

Commit

Permalink
fix: Fix linux-x86-64 folder expected by jna.
Browse files Browse the repository at this point in the history
Cmake was creating folder linux-x86_64.
  • Loading branch information
damencho committed May 18, 2022
1 parent 2ed6431 commit 6a8b936
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
elseif (UNIX)
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../main/resources/linux-x86" CACHE PATH "default install path" FORCE)
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../main/resources/linux-x86-64" CACHE PATH "default install path" FORCE)
else ()
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../main/resources/linux-${CMAKE_SYSTEM_PROCESSOR}" CACHE PATH "default install path" FORCE)
endif ()
Expand Down

0 comments on commit 6a8b936

Please sign in to comment.