Skip to content

cmake: initialize BUILD_TESTING before first use#13668

Closed
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:cmake-build-testing-fix
Closed

cmake: initialize BUILD_TESTING before first use#13668
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:cmake-build-testing-fix

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented May 16, 2024

Before this patch BUILD_TESTING was used once, then initialized, then
used again. This caused the curlu library not being built when relying
on an implicit BUILD_TESTING=ON setting, and ending up with a link
error when building the testdeps target.

It did not cause issues when BUILD_TESTING was explicitly set.

Move the initialization before the first use to fix it.

Regression from aace27b #12287

Closes #13668

Before this patch `BUILD_TESTING` was used once, then initialized, then
used again. This caused the `curlu` library not being built when relying
on an implicit `BUILD_TESTING=ON` setting, and ending up with a link
error when building the `testdeps` target.

It did not cause issues when `BUILD_TESTING` was explicitly set.

Move the initialization before the first use to fix it.

Closes #xxxxx
@github-actions github-actions bot added the build label May 16, 2024
@vszakats vszakats closed this in 9e2bd56 May 16, 2024
@vszakats vszakats deleted the cmake-build-testing-fix branch May 16, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant