File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 47
47
48
48
- name : Build
49
49
shell : bash
50
- run : cmake --build --preset conan-${{ env.BUILD_TYPE_LOWERCASE }}
50
+ run : cmake --build --preset conan-${{ env.BUILD_TYPE_LOWERCASE }}
51
51
52
52
- name : run test (Windows)
53
53
working-directory : ${{github.workspace}}/build
Original file line number Diff line number Diff line change @@ -54,7 +54,16 @@ else()
54
54
GTest::gtest
55
55
GTest::gtest_main)
56
56
57
- gtest_discover_tests(behaviortree_cpp_test)
57
+ # gtest_discover_tests queries the test executable for available tests and registers them on ctest individually
58
+ # On Windows it needs a little help to find the shared libraries
59
+ if (WIN32 )
60
+ gtest_discover_tests(behaviortree_cpp_test
61
+ DISCOVERY_MODE PRE_TEST
62
+ DISCOVERY_ENVIRONMENT "PATH=$<TARGET_FILE_DIR:behaviortree_cpp_test>;$ENV{PATH} "
63
+ )
64
+ else ()
65
+ gtest_discover_tests(behaviortree_cpp_test)
66
+ endif ()
58
67
59
68
endif ()
60
69
You can’t perform that action at this time.
0 commit comments