Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: do not test utils if not building utils #4946

Merged
merged 1 commit into from Feb 21, 2023

Conversation

fghzxm
Copy link
Contributor

@fghzxm fghzxm commented Feb 19, 2023

Setting -DENABLE_UTILS=0 -DENABLE_TESTS=1 causes CMake errors due to tests/utils/CMakeLists.txt referencing $<TARGET_FILE:transmission-show> which is undefined. Fixed by including the tests/utils/ directory only if ENABLE_UTILS is true.

@ckerr ckerr added type:fix A bug fix type:build Changes that affect the build system notes:none Should not be listed in release notes labels Feb 19, 2023
@ckerr ckerr added this to the 4.0.1 milestone Feb 21, 2023
Setting `-DENABLE_UTILS=0 -DENABLE_TESTS=1` causes CMake errors due to
tests/utils/CMakeLists.txt referencing
`$<TARGET_FILE:transmission-show>` which is undefined.  Fixed by
including the tests/utils/ directory only if `ENABLE_UTILS` is true.
@ckerr ckerr changed the title fix: do not test utils if not building utils build: do not test utils if not building utils Feb 21, 2023
@ckerr ckerr merged commit db118e7 into transmission:main Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes:none Should not be listed in release notes type:build Changes that affect the build system type:fix A bug fix
Development

Successfully merging this pull request may close these issues.

None yet

2 participants