From 79208d90fddcdf8d0103db76b9b2727f336cf10e Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Aug 14 2020 06:37:17 +0000 Subject: Start using %__cmake_builddir, packaging guidelines has been updated --- diff --git a/mariadb-connector-c.spec b/mariadb-connector-c.spec index 58f47c9..c6f52fa 100644 --- a/mariadb-connector-c.spec +++ b/mariadb-connector-c.spec @@ -10,11 +10,6 @@ # I'm generally in favor of this change, however when I tried to adapt it, I encountered a number of issues. # That's why I disabled it for now. %global __cmake_in_source_build 1 -# Specifically, be aware that all subsequent call of CMake *MUST* be called with the specified builddir -# e.g. " cmake -B %%{__cmake_builddir} -LAH " -# Otherwise you will experience *really odd* behaviour. HOWEVER the "%%{__cmake_builddir}" is not suitable for use, -# read this mail discussion for details: -# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/WJUNUJ7BJQYXQTONR5AGOKD3ZNKLSDDC/ @@ -138,7 +133,7 @@ FFLAGS="$FFLAGS -O0 -g"; export FFLAGS FCFLAGS="$FCFLAGS -O0 -g"; export FCFLAGS %endif -#cmake ./ -LAH +cmake -B %__cmake_builddir -LAH %cmake_build