From c554a89b949807b2f082c8370c0405365e12dee9 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 6 Aug 2020 21:05:16 +0200 Subject: [PATCH] adaptations for CMake out-of-tree builds See: https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds --- CharLS.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CharLS.spec b/CharLS.spec index c5ba75e..97df63b 100644 --- a/CharLS.spec +++ b/CharLS.spec @@ -38,18 +38,21 @@ CharLS Library Header Files and Link Libraries. %cmake -DBUILD_SHARED_LIBS:BOOL=ON\ -DCMAKE_BUILD_TYPE:STRING="Release"\ -DCMAKE_VERBOSE_MAKEFILE=ON\ - -DBUILD_TESTING=ON . + -DBUILD_TESTING=ON -%make_build +%cmake_build %install -%make_install +%cmake_install %check +pushd %{_vpath_builddir} # Enter a key + enter to finish echo "a" | ./charlstest +popd + %files %license License.txt