Skip to content

Commit

Permalink
Cmake changes (#91)
Browse files Browse the repository at this point in the history
* * Added cmake script for simplifying and focusing on cmake builds for gams
* Removed eigen code requirement for base_build and instead just have it installing Eigen. Didn't try this on MPC build, but it's probably a good idea to move away from MPC anyway
* Fixed warnings in cmake build

* * Removed redundant cmake install prefixes for local install dir
  • Loading branch information
jredmondson authored Dec 17, 2023
1 parent fba3aeb commit f7fdddd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/linux/cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ cd $PROJECT_PATH
mkdir build
mkdir install
cd build
cmake -DCMAKE_INSTALL_PREFIX="../install" -D'CMAKE_INSTALL_PREFIX=/usr/local' -DCMAKE_PREFIX_PATH=$PROJECT_PATH/install ..
cmake --build . --config debug -j$(nproc)
cmake --build . --config release
sudo cmake --build . --target install --config release
sudo cmake --build . --target install --config debug

cmake -D'CMAKE_INSTALL_PREFIX=/usr/local' -DCMAKE_PREFIX_PATH=$PROJECT_PATH/install ..
cmake --build . --config debug -j$(nproc)
cmake --build . --config release
sudo cmake --build . --target install --config release
sudo cmake --build . --target install --config debug

0 comments on commit f7fdddd

Please # to comment.