Skip to content

Commit 19e61aa

Browse files
test(relative-paths): Attempt to fix the tests workflow
1 parent bfa1e1f commit 19e61aa

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

tests/CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/cmake.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,14 @@ working-directory = "compile-options"
5959
command = "$<TARGET_FILE:cmkr>"
6060
arguments = ["build"]
6161

62+
[[test]]
63+
name = "relative-paths-setup"
64+
working-directory = "relative-paths"
65+
command = "$<TARGET_FILE:cmkr>"
66+
arguments = ["build --target test-library"]
67+
6268
[[test]]
6369
name = "relative-paths"
6470
working-directory = "relative-paths"
6571
command = "$<TARGET_FILE:cmkr>"
66-
arguments = ["build"]
72+
arguments = ["build --target example"]

tests/relative-paths/cmake.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,3 @@ add_custom_command(
1919
type = "executable"
2020
sources = ["src/main.cpp"]
2121
link-libraries = ["libs/test-library-file.lib"]
22-
cmake-after = """
23-
add_dependencies(${CMKR_TARGET} ${TEST_LIBRARY_TARGET_NAME})
24-
"""

0 commit comments

Comments
 (0)