Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

add WITHOUT_LDCONFIG option to cmake #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -16,7 +16,7 @@ Build
sudo apt-get install libopenmpi-dev openmpi-bin build-essential cmake git
git clone https://github.com/Microsoft/multiverso.git --recursive && cd multiverso
mkdir build && cd build
cmake .. && make && sudo make install
cmake .. && make && sudo make install # use "cmake -DWITHOUT_LDCONFIG=TRUE .." if you do not have root access to /etc/ld.so.cache, and add your libmultiverso.so to LD_LIBRARY_PATH after "make install"
```

**Windows**
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Expand Up @@ -26,6 +26,6 @@ else()
endif()

install (TARGETS multiverso DESTINATION lib)
if (UNIX)
if (NOT WITHOUT_LDCONFIG AND UNIX)
install(CODE "execute_process(COMMAND ldconfig)") # run ldconfig. Otherwise ld.so.cache won't be created.
endif()