forked from pool/cmake
Accepting request 426207 from home:boombatower:graphics
Update %cmake macro to provide %__sourcedir parameter. OBS-URL: https://build.opensuse.org/request/show/426207 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=264
This commit is contained in:
parent
6d9b1150cb
commit
36f65f7882
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 9 23:38:12 UTC 2016 - jimmy@boombatower.com
|
||||
|
||||
- Update %cmake macro to provide %__sourcedir parameter.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 26 08:27:17 UTC 2016 - tchvatal@suse.com
|
||||
|
||||
|
@ -5,13 +5,14 @@
|
||||
%__ctest %{_bindir}/ctest
|
||||
%__builddir build
|
||||
%__builder %__make
|
||||
%__sourcedir .
|
||||
|
||||
%cmake \
|
||||
find . -name CMakeLists.txt \\\
|
||||
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 .. \\\
|
||||
%__cmake ../%__sourcedir \\\
|
||||
%if "%__builder" == "%__make" \
|
||||
-G"Unix Makefiles" \\\
|
||||
%else \
|
||||
|
Loading…
Reference in New Issue
Block a user