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

installation fails if -DMESHES isn't set #432

Closed
cwsmith opened this issue May 31, 2024 · 1 comment
Closed

installation fails if -DMESHES isn't set #432

cwsmith opened this issue May 31, 2024 · 1 comment

Comments

@cwsmith
Copy link
Contributor

cwsmith commented May 31, 2024

Without -DMESHES set, and the following cmake configure command cmake .. -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_INSTALL_PREFIX=../install -DSCOREC_CXX_WARNINGS=OFF the following error is hit during installation (make install).

CMake Error at test/cmake_install.cmake:1521 (file):
  file INSTALL cannot find
  "/Users/dobrev1/code/pumi/pumi-meshes/pipe/pipe.dmg": No such file or
  directory.
Call Stack (most recent call first):
  cmake_install.cmake:91 (include)


make: *** [install] Error 1

It looks like the smoke tests requires those files:

set(MDIR ${MESHES}/pipe)
smoke_test(uniform_serial 1
./uniform
"${MDIR}/pipe.dmg"
"${MDIR}/pipe.smb"
"pipe_unif.smb")
smoke_test(split_2 2
./split
"${MDIR}/pipe.dmg"
"${MDIR}/pipe.smb"
"pipe_2_.smb"
2)
include(GNUInstallDirs)
# install the test input files for use in spack post-install tests
install(FILES "${MDIR}/pipe.dmg" "${MDIR}/pipe0.smb"
DESTINATION ${CMAKE_INSTALL_DATADIR}/testdata)

Those test inputs should be included with the repo to avoid this.

Thanks to @v-dobrev for reporting this.

@cwsmith
Copy link
Contributor Author

cwsmith commented Oct 25, 2024

resolved with #463

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

No branches or pull requests

1 participant