Skip to content

Commit

Permalink
BLD: [C++] Add manual build script and exclude OpenMP flag
Browse files Browse the repository at this point in the history
  • Loading branch information
RUrlus committed Feb 18, 2024
1 parent 18d418f commit dd2393e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CompileFlags:
Add: [-Wall -Wextra -Wunused-variable -Wunused-const-variable]
Remove: [-fopenmp]
16 changes: 16 additions & 0 deletions mbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
cmake -S . -G Ninja -B build \
-DSKBUILD_PROJECT_NAME="diptest" \
-DSKBUILD_PROJECT_VERSION="0.8.0" \
-DDIPTEST_MBUILD=ON \
-DDIPTEST_CPP_STANDARD="11" \
-DDIPTEST_ENABLE_DEVMODE=ON \
-DDIPTEST_ENABLE_DEBUG=OFF \
-DDIPTEST_ENABLE_OPENMP=ON \
-DDIPTEST_ENABLE_EXT_TESTS=OFF \
-DDIPTEST_ENABLE_ARCH_FLAGS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DOpenMP_ROOT=$(brew --prefix)/opt/libomp \
-Dpybind11_DIR=$(python3 -c "import pybind11; print(pybind11.get_cmake_dir())") \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON

cmake --build build --target install --config Release --parallel 4

0 comments on commit dd2393e

Please sign in to comment.