Skip to content

Commit

Permalink
using DCGP_CXX_FLAGS_EXTRA
Browse files Browse the repository at this point in the history
  • Loading branch information
darioizzo committed Nov 8, 2019
1 parent 31db658 commit 266116a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
Expand Down
5 changes: 5 additions & 0 deletions dcgpy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ target_link_libraries(dcgpy INTERFACE ${DCGPY_BP_TARGET} Boost::disable_autolink
target_include_directories(dcgpy INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include/dcgpy> $<INSTALL_INTERFACE:include>)

# 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
Expand Down

0 comments on commit 266116a

Please sign in to comment.