forked from pool/cmake
Accepting request 986334 from home:cgiboudeaux:branches:devel:tools:building
- Fix the %%cmake macro which tried to run sed on 'CMakeLists.txt' without making sure it's not a folder. Found while fixing the liboqs package which has a folder named CMakeLists.txt OBS-URL: https://build.opensuse.org/request/show/986334 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=494
This commit is contained in:
parent
4bad45639d
commit
e88273a269
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 2 07:32:54 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
- Fix the %%cmake macro which tried to run sed on 'CMakeLists.txt'
|
||||
without making sure it's not a folder.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 5 00:03:22 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
%__sourcedir .
|
||||
|
||||
%cmake \
|
||||
find %__sourcedir -name CMakeLists.txt \\\
|
||||
find %__sourcedir -type f -name CMakeLists.txt \\\
|
||||
-exec sed -i -re '/^[[:blank:]]*[sS][eE][tT][[:blank:]]*\\\([[:blank:]]*(CMAKE_BUILD_TYPE|CMAKE_COLOR_MAKEFILE|CMAKE_INSTALL_PREFIX|CMAKE_VERBOSE_MAKEFILE).*\\\)/{s/^/#IGNORE /}' {} + \
|
||||
mkdir -p %__builddir \
|
||||
cd %__builddir \
|
||||
|
Loading…
Reference in New Issue
Block a user