Skip to content

Instantly share code, notes, and snippets.

@simonrw
Created January 6, 2019 22:52
Show Gist options
  • Save simonrw/d3b17ed8df82896311343c742b554e95 to your computer and use it in GitHub Desktop.
Save simonrw/d3b17ed8df82896311343c742b554e95 to your computer and use it in GitHub Desktop.
Shell command used to run cmake to build FreeOpcUa on macos
#!/bin/bash
# `brew install [email protected]`
set -e
(
mkdir -p build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DBUILD_PYTHON=off \
-DBoost_INCLUDE_DIR=/usr/local/opt/[email protected]/include \
-DBoost_LIBRARY_DIR_DEBUG=/usr/local/opt/[email protected]/lib \
-DBoost_LIBRARY_DIR_RELEASE=/usr/local/opt/[email protected]/lib \
-DSSL_SUPPORT_MBEDTLS=off
make -j 8
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment