/[packages]/cauldron/cmake/releases/1:2.8.5/1.mga2/SOURCES/cmake.macros
ViewVC logotype

Contents of /cauldron/cmake/releases/1:2.8.5/1.mga2/SOURCES/cmake.macros

Parent Directory Parent Directory | Revision Log Revision Log


Revision 389214 - (show annotations) (download)
Thu Jan 17 21:30:27 2013 UTC (10 years, 11 months ago) by pterjan
File size: 1178 byte(s)
oops
1 #
2 # Macros for cmake
3 #
4 # Warning: do not remove the -DCMAKE_MODULE_LINKER_FLAGS command as it is required to build kde and qt apps
5 #
6
7 %_cmake_lib_suffix64 -DLIB_SUFFIX=64
8 %_cmake_skip_rpath -DCMAKE_SKIP_RPATH:BOOL=ON
9 %__cmake %{_bindir}/cmake
10 %_cmake_debug %{?with_debug:debug}%{?!with_debug:release}
11
12 %cmake \
13 %setup_compile_flags \
14 mkdir -p build \
15 cd build \
16 %define enable_debug 1 \
17 %{?_enable_debug: %{expand: %%global enable_debug 1}} \
18 %__cmake .. \\\
19 -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
20 -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \\\
21 -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
22 -DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
23 -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
24 -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
25 -DCMAKE_BUILD_TYPE=%{_cmake_debug} \\\
26 %if "%{?_lib}" == "lib64" \
27 %{?_cmake_lib_suffix64} \\\
28 %endif \
29 %{?_cmake_skip_rpath} \\\
30 %{?_cmake_verbose: -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON} \\\
31 -DBUILD_SHARED_LIBS:BOOL=ON \\\
32 -DBUILD_STATIC_LIBS:BOOL=OFF \\\
33 -DCMAKE_MODULE_LINKER_FLAGS="%(echo %ldflags|sed -e 's#-Wl,--no-undefined##')"

  ViewVC Help
Powered by ViewVC 1.1.28