forked from pool/cmake
Accepting request 430399 from devel:tools:building
1 OBS-URL: https://build.opensuse.org/request/show/430399 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=126
This commit is contained in:
commit
3ec76f1732
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 25 00:21:58 UTC 2016 - jimmy@boombatower.com
|
||||
|
||||
- Utilize $OLDPWD to make __sourcedir always relative to root
|
||||
regardless of the __builddir.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 23 23:43:22 UTC 2016 - jimmy@boombatower.com
|
||||
|
||||
- Indeed, do prepend .. to sourcedir.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 13 21:29:10 UTC 2016 - foss@grueninger.de
|
||||
|
||||
|
@ -5,14 +5,14 @@
|
||||
%__ctest %{_bindir}/ctest
|
||||
%__builddir build
|
||||
%__builder %__make
|
||||
%__sourcedir ..
|
||||
%__sourcedir .
|
||||
|
||||
%cmake \
|
||||
find %__sourcedir -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 \
|
||||
%__cmake %__sourcedir \\\
|
||||
%__cmake $OLDPWD/%__sourcedir \\\
|
||||
%if "%__builder" == "%__make" \
|
||||
-G"Unix Makefiles" \\\
|
||||
%else \
|
||||
|
Loading…
Reference in New Issue
Block a user