Commit Graph

18 Commits

Author SHA1 Message Date
Neal Gompa
4e79ea6773 Add build, install, and test macros for CMake
CMake supports multiple generator types for builds, such as GNU Make
and Ninja. As of CMake 3.15, there are now analogs for build and install
steps typically managed directly by build tools, where CMake controls
the logic to correctly call out.

Consequently, it is now rather easy to support any given type of
build tool (as long as it's available in the build environment) and
have a CMake build "work" as expected.

This also brings CMake in line with the same build/install process
that is used for packaging Meson-based projects.
2020-06-23 09:41:38 +00:00
Neal Gompa
50646f0efa Setup CMake to do out-of-tree builds by default
This brings CMake in line with upstream best practices for building
with CMake and lines up with how most people expect CMake to behave.
2020-06-23 09:41:38 +00:00
Björn Esser
b9f551dc1f
Do not indent rpm conditionals in macros.cmake 2020-01-15 11:53:26 +01:00
Björn Esser
202d11b3d1
Use %%set_build_flags inside macros.cmake if available 2020-01-15 11:43:18 +01:00
Rex Dieter
97ec277724 macros.cmake: introduce %_cmake_shared_libs macro
... makes it easier to override or disable.
2018-12-08 16:16:41 -06:00
Orion Poplawski
3bac96b089 Ship symlinks to binaries with major version in name
- Provide %cmakeX macro, where X is cmake major version
2016-08-17 11:07:59 -06:00
Orion Poplawski
f9924193e8 Drop -O3 from default release build type flags in cmake rpm macro (bug 875954) 2013-04-18 09:59:15 -06:00
Orion Poplawski
301a3e914a Define FCFLAGS in cmake macro 2013-02-22 15:27:16 -07:00
Orion Poplawski
b3da378d4f Just strip CMAKE_INSTALL_LIBDIR from %cmake macro 2012-02-21 16:11:17 -07:00
Orion Poplawski
2273177e80 Strip CMAKE_INSTALL_LIBDIR and others from %cmake macro (bug 795542) 2012-02-21 15:27:33 -07:00
Orion Poplawski
d8fd6d266c Sync FFLAGS and LDFLAGS in the %cmake macro with redhat-rpm-config. 2011-09-13 15:55:59 -06:00
Rex Dieter
3724c3c21b - macros.cmake: drop -DCMAKE_SKIP_RPATH:BOOL=ON from %cmake 2010-01-14 17:05:09 +00:00
Rex Dieter
4a777e4934 - macro.cmake: prefixes cmake with the package being builts bindir
(#523878)
2009-09-17 15:19:25 +00:00
Rex Dieter
1ea9fac37c - macros.cmake: +%_cmake_version 2009-03-16 16:20:14 +00:00
Rex Dieter
57dcacbf3c - macros.cmake: add -DCMAKE_SKIP_RPATH:BOOL=ON
- fix Release tag
2009-01-04 21:10:23 +00:00
Rex Dieter
2dd88b1751 - Add -DCMAKE_VERBOSE_MAKEFILE=ON to %cmake (#474053)
- preserve timestamp of macros.cmake
- cosmetics
2008-12-02 17:46:08 +00:00
Orion Poplawski
a1819c2ef4 - Revert to 2.4.6 (2.4.7 was hosed and never built)
- Update macros.cmake to add CMAKE_INSTALL_LIBDIR, INCLUDE_INSTALL_DIR,
    LIB_INSTALL_DIR, SYSCONF_INSTALL_DIR, and SHARE_INSTALL_PREFIX
2007-06-27 17:00:25 +00:00
Orion Poplawski
ac58f9883d Add rpm macros 2007-04-06 16:56:30 +00:00