Update build instructons Add use of OPEN_MP to linux and macOS build instructions, and a mention of ENABLE_LTO.

pull/906/head
phkahler 2021-01-18 14:57:15 -05:00
parent d3951afb12
commit 6d9bbb69d6
1 changed files with 9 additions and 4 deletions

View File

@ -94,13 +94,15 @@ After that, build SolveSpace as following:
mkdir build mkdir build
cd build cd build
cmake .. -DCMAKE_BUILD_TYPE=Release cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=ON
make make
sudo make install sudo make install
Link Time Optimization is supported by adding -DENABLE_LTO=ON to cmake at the
expense of longer build time.
The graphical interface is built as `build/bin/solvespace`, and the command-line interface The graphical interface is built as `build/bin/solvespace`, and the command-line interface
is built as `build/bin/solvespace-cli`. It is possible to build only the command-line interface is built as `build/bin/solvespace-cli`. It is possible to build only the command-line interface by passing the `-DENABLE_GUI=OFF` flag to the cmake invocation.
by passing the `-DENABLE_GUI=OFF` flag to the cmake invocation.
### Building for Windows ### Building for Windows
@ -154,9 +156,12 @@ After that, build SolveSpace as following:
mkdir build mkdir build
cd build cd build
cmake .. -DCMAKE_BUILD_TYPE=Release cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=ON
make make
Link Time Optimization is supported by adding -DENABLE_LTO=ON to cmake at the
expense of longer build time.
Alternatively, generate an XCode project, open it, and build the "Release" scheme: Alternatively, generate an XCode project, open it, and build the "Release" scheme:
mkdir build mkdir build