=== CMake ==== Compiler flags -pipe -fstack-protector-strong -fno-plt -fPIE -march=native -mtune=native ==== Install paths CMAKE_INSTALL_PREFIX is prepended onto all install paths. This variable defaults to /usr/local on *nix and c:/Program Files/${PROJECT_NAME} on Windows. On *nix you can use DESTDIR to relocate the entire installation. DESTDIR is prepended to CMAKE_INSTALL_PREFIX. This will install the project to /ports/pkg/install/usr: [source, sh] ---- cmake -DCMAKE_INSTALL_PREFIX=/usr ... ... make DESTDIR=/ports/pkg/install install ---- ==== clang-tidy CMAKE_CXX_CLANG_TIDY="clang-tidy;-checks=*" ==== cppcheck CMAKE_CXX_CPPCHECK="cppcheck" ==== ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ==== llvm libcpp CMAKE_CXX_FLAGS: -stdlib=libc++" CMAKE_EXE_LINKER_FLAGS -stdlib=libc++