Skip to content

Commit

Permalink
Added LIB_INSTALL_DIR to correct libs install on 64-bit systems (#636)
Browse files Browse the repository at this point in the history
* Added LIB_INSTALL_DIR to correct libs install on 64-bit systems
* Add description for using LIB_INSTALL_DIR parameter.
  • Loading branch information
Vascom authored and xor-gate committed Sep 8, 2017
1 parent 3d8ca68 commit 1700e6a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ project(stlink C)
set(PROJECT_DESCRIPTION "Open source version of the STMicroelectronics Stlink Tools")
set(STLINK_UDEV_RULES_DIR "/etc/udev/rules.d" CACHE PATH "Udev rules directory")
set(STLINK_MODPROBED_DIR "/etc/modprobe.d" CACHE PATH "modprobe.d directory")
set(STLINK_LIBRARY_PATH "lib/${CMAKE_LIBRARY_PATH}" CACHE PATH "Target lib directory")
set(LIB_INSTALL_DIR "lib" CACHE PATH "Main library directory")
set(STLINK_LIBRARY_PATH "${LIB_INSTALL_DIR}/${CMAKE_LIBRARY_PATH}" CACHE PATH "Target lib directory")

option(STLINK_GENERATE_MANPAGES "Generate manpages with pandoc" OFF)

Expand Down
9 changes: 9 additions & 0 deletions doc/compiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ $ cmake -DSTLINK_UDEV_RULES_DIR="/usr/lib/udev/rules.d" \
-DSTLINK_MODPROBED_DIR="/usr/lib/modprobe.d" ..
```

## Build using different directory for shared libs

To put the compiled shared libs into a different directory during installation
you can use the following cmake option:

```
$ cmake -DLIB_INSTALL_DIR:PATH="/usr/lib64" ..
```

## Windows (MinGW64)

### Prequistes
Expand Down

0 comments on commit 1700e6a

Please sign in to comment.