Skip to content

Commit

Permalink
Conditional on cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
austinschneider committed Jun 2, 2024
1 parent 23da9a0 commit e7446d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmake/testing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ set_target_properties(gmock_main PROPERTIES FOLDER extern)

if(${CIBUILDWHEEL})
macro(package_add_test TESTNAME)
add_custom_target(${TESTNAME})
endmacro()
else()
macro(package_add_test TESTNAME)
Expand Down
2 changes: 2 additions & 0 deletions projects/injection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ install(DIRECTORY "${PROJECT_SOURCE_DIR}/projects/injection/public/"
)

#package_add_test(UnitTest_Injector ${PROJECT_SOURCE_DIR}/projects/injection/private/test/Injector_TEST.cxx)
if(NOT ${CIBUILDWHEEL})
package_add_test(UnitTest_CCM_HNL ${PROJECT_SOURCE_DIR}/projects/injection/private/test/CCM_HNL_TEST.cxx)
target_link_libraries(UnitTest_CCM_HNL pybind11::embed)
endif()

pybind11_add_module(injection ${PROJECT_SOURCE_DIR}/projects/injection/private/pybindings/injection.cxx)
target_link_libraries(injection PRIVATE SIREN photospline pybind11::embed)
Expand Down

0 comments on commit e7446d1

Please sign in to comment.