vtkm: fix the directory cmake looks for the source code (#11576)

Previously, the vtkm package was adding a "../" option to the
cmake command line. I suppose this was supposed to be pointing
to the source code, but did not. Rather, Spack correctly adds
the source directory as the first argument to cmake. However,
because ../ was added, it used that as the source directory
instead.

Simply remove this argument to make CMake work correctly.
This commit is contained in:
Kenneth Moreland 2019-05-29 09:10:12 -06:00 committed by Elizabeth Fischer
parent 643e7806e0
commit a7ffccfc97

View file

@ -50,8 +50,7 @@ def cmake_args(self):
spec = self.spec
options = []
with working_dir('spack-build', create=True):
options = ["../",
"-DVTKm_ENABLE_TESTING:BOOL=OFF"]
options = ["-DVTKm_ENABLE_TESTING:BOOL=OFF"]
# shared vs static libs
if "+shared" in spec:
options.append('-DBUILD_SHARED_LIBS=ON')