Skip to content

Fix CMake error about source directory not existing - #1272

Open
bostick wants to merge 1 commit into
madler:developfrom
bostick:fix-cmake-error-source-directory
Open

Fix CMake error about source directory not existing#1272
bostick wants to merge 1 commit into
madler:developfrom
bostick:fix-cmake-error-source-directory

Conversation

@bostick

@bostick bostick commented Jun 20, 2026

Copy link
Copy Markdown

When I run the zlib tests, I get:

test 7
      Start  7: zlib_find_package_wrong_components_configure

7: Test command: /opt/homebrew/bin/cmake "-B/Users/brenton/development/github/tbt-parser/build/_deps/zlib-build/test/zlib_find_package_wrong_components_test_build" "-DCMAKE_BUILD_TYPE=" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_C_FLAGS=" "-DCMAKE_INSTALL_PREFIX=/Users/brenton/development/github/tbt-parser/build/_deps/zlib-build/test/test_install" "--fresh" "-G" "Unix Makefiles" "-S/Users/brenton/development/github/tbt-parser/build/_deps/zlib-build/test/zlib_find_package_wrong_components_test"
7: Working Directory: /Users/brenton/development/github/tbt-parser/build/lib/../_deps/zlib-build/test
7: Test timeout computed to be: 10000000
7: CMake Error: The source directory "/Users/brenton/development/github/tbt-parser/build/_deps/zlib-build/test/zlib_find_package_wrong_components_test" does not exist.
7: Specify --help for usage, or press the help button on the CMake GUI.
 7/36 Test  #7: zlib_find_package_wrong_components_configure ...   Passed    0.00 sec

Notice:

CMake Error: The source directory "/Users/brenton/development/github/tbt-parser/build/_deps/zlib-build/test/zlib_find_package_wrong_components_test" does not exist.

It looks like commit b2ed197 did not update everything in test/CMakeLists.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant