diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c271424a..0be97dc2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -92,7 +92,7 @@ jobs: -DCMAKE_INSTALL_PREFIX=C:\tools\miniconda3\Library ^ -DDCGP_BUILD_DCGP=no ^ -DDCGP_BUILD_DCGPY=yes ^ - -DCMAKE_CXX_FLAGS_RELEASE="-D_copysign=copysign" + -DDCGP_CXX_FLAGS_EXTRA="-D_copysign=copysign" cmake --build . -- -v cmake --build . --target install python -c "import dcgpy.test; dcgpy.test.run_test_suite()" diff --git a/dcgpy/CMakeLists.txt b/dcgpy/CMakeLists.txt index 3b0b90e7..6ee9d016 100644 --- a/dcgpy/CMakeLists.txt +++ b/dcgpy/CMakeLists.txt @@ -39,6 +39,11 @@ target_link_libraries(dcgpy INTERFACE ${DCGPY_BP_TARGET} Boost::disable_autolink target_include_directories(dcgpy INTERFACE $ $ $) +# Extra flags to be appended in CI experiments +set(DCGP_CXX_FLAGS_EXTRA) +mark_as_advanced(DCGP_CXX_FLAGS_EXTRA) +list(APPEND DCGP_CXX_FLAGS_RELEASE ${DCGP_CXX_FLAGS_EXTRA}) + # Setup of the dcgpy core module. YACMA_PYTHON_MODULE(core core.cpp