build_static.sh 399 B

1234567891011121314151617
  1. #!/bin/bash
  2. # Isolate the build.
  3. mkdir build_static
  4. cd build_static || exit 1
  5. # Generate the build files.
  6. cmake .. -G"Ninja" ${CMAKE_ARGS} \
  7. -DYAML_BUILD_SHARED_LIBS=OFF \
  8. -DYAML_CPP_BUILD_TESTS=OFF \
  9. -DCMAKE_BUILD_TYPE=Release \
  10. -DCMAKE_PREFIX_PATH=$PREFIX \
  11. -DCMAKE_INSTALL_PREFIX=$PREFIX \
  12. -DYAML_CPP_INSTALL=ON
  13. # Build and install.
  14. ninja install || exit 1