Björn Esser
6bbf683451
Remove debug compiler flag in macros.cmake (CMAKE_Fortran_FLAGS_RELEASE)
...
Fixes rhbz#2017942
Complements: ff8467c934
2021-10-28 18:36:01 +02:00
Björn Esser
ff8467c934
Revert previous changes to marcos.cmake (-O2 -g)
...
Fixes rhbz#2017942
2021-10-28 10:31:51 +02:00
Björn Esser
7e4503e30d
Explicitly force optimization level 2 and debuginfo for release builds
2021-10-14 18:28:43 +02:00
5db8037248
Ensure CMake does not strip binaries with package builds
2020-11-20 08:33:31 -05:00
Christoph Junghans
c9bb4a4953
Make %ctest non-verbose by default
2020-09-29 10:32:06 -06:00
Orion Poplawski
8674426d57
Handle arguments for ctest3 macro
2020-07-29 22:03:29 -06:00
Orion Poplawski
5d587929de
Default to --verbose for ctest as well
2020-07-21 20:36:38 -06:00
672b300dfb
Make in-source builds behave like before
2020-07-19 08:45:08 -04:00
Igor Raits
85ead68072
Enable out-of-source builds by default
...
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-07-18 09:02:15 +02:00
Igor Raits
fbadbabca6
Revert "Enable out-of-source builds"
...
This reverts commit 419924585f
.
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-07-03 22:36:43 +02:00
Igor Raits
419924585f
Enable out-of-source builds
...
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-07-03 22:35:31 +02:00
f626219c98
Fix __cmake_builddir macro definition
2020-07-03 12:11:19 -04:00
8158da8089
Temporarily switch back to in-source builds
2020-07-03 11:51:15 -04:00
169c293f4c
Switch to implementation that is backwards compatible to older RPM
...
- Change control macro for in-source/out-of-source to %__cmake_in_source_build
2020-07-03 11:43:04 -04:00
Igor Raits
2af1671e51
Add out-of-source builds controlled by a macro
...
This will allow us to port packages to the %cmake_build/%cmake_install
even on older Fedora with possibility to easily opt-in for out-of-source
builds by `%global __cmake_out_of_source_build 1`. In future we will
make it opt-out (`%global __cmake_out_of_source_build 0` will do
in-source builds again).
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-07-03 17:12:56 +02:00
Igor Raits
134e994816
Revert "Setup CMake to do out-of-tree builds by default"
...
This reverts commit 50646f0efa
.
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-07-01 08:27:40 +02:00
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
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