diff options
Diffstat (limited to 'libopen3d-dev.spec')
| -rw-r--r-- | libopen3d-dev.spec | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libopen3d-dev.spec b/libopen3d-dev.spec index db3a367..a4d614d 100644 --- a/libopen3d-dev.spec +++ b/libopen3d-dev.spec @@ -33,6 +33,7 @@ Group: Development/Libraries Packager: openEuler Builder <builder@openeuler.org> BuildRequires: cmake +BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: pkgconfig @@ -146,10 +147,18 @@ sed -i 's#-DGLFW_BUILD_DOCS=OFF#-DGLFW_BUILD_DOCS=OFF\n -DGLFW_BUILD_WAYL -DUSE_SYSTEM_EMBREE=OFF \ -DUSE_SYSTEM_VTK=OFF \ -DBUILD_VTK_FROM_SOURCE=ON -%cmake_build + +# openEuler's cmake configure macro configures IN-SOURCE: it does not pass +# -S/-B, so the cache lands in the unpacked source directory +# (BUILD/libopen3d-dev-0.19.0). The cmake_build / cmake_install macros from +# the same macro set, however, always use the out-of-source vpath directory +# (the _vpath_builddir value, i.e. aarch64-openEuler-linux-gnu), which the +# configure step never created -- hence "is not a directory". Drive the +# already-configured in-source tree explicitly instead. +%{__cmake} --build . %{?_smp_mflags} --verbose %install -%cmake_install +DESTDIR=%{buildroot} %{__cmake} --install . %files %license LICENSE |
