Skip to content

Commit

Permalink
change cmake install prefix to $HOME/.local
Browse files Browse the repository at this point in the history
fixes permission issues on macos, ubuntu, and likely most linux distributions
  • Loading branch information
takenagain committed Dec 30, 2024
1 parent 3f78e7f commit 38d35cf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,8 @@ libmm2.a
libmm2.dylib
libkdflib.a
libkdflib.dylib
windows/**/mm2.exe
windows/**/kdf.exe
linux/mm2/mm2
linux/kdf/kdf
macos/mm2
macos/kdf
**/.api_last_updated*
.venv/
Expand Down
2 changes: 1 addition & 1 deletion packages/komodo_defi_framework/CMakeCache.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=/Users/charl/Code/UTXO/komodo_defi_frame
CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local
CMAKE_INSTALL_PREFIX:PATH=$HOME/.local

//Path to a program.
CMAKE_LINKER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
Expand Down
2 changes: 1 addition & 1 deletion packages/komodo_defi_framework/cmake_install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/local")
set(CMAKE_INSTALL_PREFIX "$HOME/.local")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")

Expand Down
2 changes: 1 addition & 1 deletion packages/komodo_defi_framework/windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ foreach(FILE ${EXE_DLL_FILES})
endforeach()

set(mm2_bundled_libraries
"${CMAKE_CURRENT_SOURCE_DIR}/mm2"
"${CMAKE_CURRENT_SOURCE_DIR}/kdf"
PARENT_SCOPE
)

0 comments on commit 38d35cf

Please sign in to comment.