Skip to content

Commit

Permalink
Fix default install dir for linux-x86
Browse files Browse the repository at this point in the history
  • Loading branch information
ibauersachs committed Nov 28, 2021
1 parent 65f2d13 commit d2b74f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
elseif (APPLE)
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../../lib/native/darwin" CACHE PATH "default install path" FORCE)
elseif (UNIX)
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../../lib/native/linux-${CMAKE_SYSTEM_PROCESSOR}" CACHE PATH "default install path" FORCE)
if (CMAKE_SYSTEM_PROCESSOR STREQUALS "x86_64" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../../lib/native/linux-x86" CACHE PATH "default install path" FORCE)
else ()
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../../lib/native/linux-${CMAKE_SYSTEM_PROCESSOR}" CACHE PATH "default install path" FORCE)
endif ()
endif ()
message(STATUS "CMAKE_INSTALL_PREFIX not set, defaulting to >${CMAKE_INSTALL_PREFIX}<")
endif ()
Expand Down

0 comments on commit d2b74f5

Please sign in to comment.