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

CMake: target dependency on BUILD_TESTING #618

Closed
dev-zero opened this issue May 27, 2022 · 0 comments · Fixed by #619
Closed

CMake: target dependency on BUILD_TESTING #618

dev-zero opened this issue May 27, 2022 · 0 comments · Fixed by #619

Comments

@dev-zero
Copy link
Contributor

Not sure why testing is needed, though, can you elaborate please @w8jcik?

I don't know the direct reason, but without this flag, CMake fails with following message

-- Found Python: /home/user/.spack/root/opt/spack/linux-ubuntu22.04-skylake/gcc-9.4.0/python-3.9.12-x4msfzae5cpz7r4ggq33caqlv72afasg/bin/python3.9 (found version "3.9.12") found components: Interpreter 
-- Found MPI_C: /home/user/.spack/root/opt/spack/linux-ubuntu22.04-skylake/gcc-9.4.0/openmpi-4.1.3-awkfuq5qz6p6oqwjnpa5trweop4iaika/lib/libmpi.so (found version "3.1") 
-- Found MPI_CXX: /home/user/.spack/root/opt/spack/linux-ubuntu22.04-skylake/gcc-9.4.0/openmpi-4.1.3-awkfuq5qz6p6oqwjnpa5trweop4iaika/lib/libmpi.so (found version "3.1") 
-- Found MPI_Fortran: /home/user/.spack/root/opt/spack/linux-ubuntu22.04-skylake/gcc-9.4.0/openmpi-4.1.3-awkfuq5qz6p6oqwjnpa5trweop4iaika/lib/libmpi_usempif08.so (found version "3.1") 
-- Found MPI: TRUE (found version "3.1") found components: C CXX Fortran 
-- Performing Test f2008-norm2
-- Performing Test f2008-norm2 - Success
-- Performing Test f2008-block_construct
-- Performing Test f2008-block_construct - Success
-- Performing Test f2008-contiguous
-- Performing Test f2008-contiguous - Success
-- Performing Test f95-reshape-order-allocatable
-- Performing Test f95-reshape-order-allocatable - Success
-- FYPP preprocessor found.
-- Configuring done
CMake Error at docs/CMakeLists.txt:17 (add_dependencies):
  The dependency target "doc_copy_tests" of target "doc" does not exist.


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

Looks like some hidden dependency.

Originally posted by @w8jcik in spack/spack#30891 (comment)

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 a pull request may close this issue.

1 participant