0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-13 17:19:11 +00:00
netdata_netdata/packaging/cmake/Modules
Austin S. Hemmelgarn e81a8d826c
Ensure that the choice of compiler and target is passed to sub-projects. ()
If not explicitly set using exported environment variables, the choice
of compilers and compiler targets used by CMake does not get propagated
to sub-porjects created with ExternalProject_Add or
FetchContent_Declare.

In most cases this does not matter, because very few people are building
using non-default compilers for their environment, but it can cause
issues in two specific cases:

- If building for the same system that the build is happening on, but
  using a non-default compiler specified using CMake arguments (instead
  of via exported environment variables), sub-projects will still use
  the default compiler for the system, which may result in linking
  errors (or runtime failures even if the link succeeds).
- If cross-compiling and not using the preferred approaches of either a
  toolchain file or exported environment variables, sub-projects may not
  even build for the correct CPU architecture, causing the build to
  fail.

This adds logic to ensure that the compiler and compiler targets get
propagated correctly even if they are just specified on the command
line, thus avoiding the above two possibilities.
2024-05-24 14:13:25 +03:00
..
FindGo.cmake Integrate Go plugin with build system. () 2024-02-26 09:10:14 -05:00
NetdataCompilerFlags.cmake Clean up handling of compiler flags in CMake. () 2024-05-01 07:04:04 -04:00
NetdataDetectSystemd.cmake Assorted macOS build fixes. () 2024-03-26 07:43:03 -04:00
NetdataEBPFCORE.cmake Update libbpf () 2024-05-14 12:08:17 +00:00
NetdataEBPFLegacy.cmake Update libbpf () 2024-05-14 12:08:17 +00:00
NetdataFetchContentExtra.cmake Ensure that the choice of compiler and target is passed to sub-projects. () 2024-05-24 14:13:25 +03:00
NetdataGoTools.cmake remove go.d symbol/debug info with RelWithDebInfo () 2024-05-01 14:14:39 +03:00
NetdataJSONC.cmake Ensure that the choice of compiler and target is passed to sub-projects. () 2024-05-24 14:13:25 +03:00
NetdataLibBPF.cmake Correctly handle required compilation flags for dependencies. () 2024-05-16 06:47:29 -04:00
NetdataProtobuf.cmake Ensure that the choice of compiler and target is passed to sub-projects. () 2024-05-24 14:13:25 +03:00
NetdataSentry.cmake Ensure that the choice of compiler and target is passed to sub-projects. () 2024-05-24 14:13:25 +03:00
NetdataUtil.cmake Fall back to querying libc.so.6 if ldd can’t detect libc implementation. () 2024-05-17 06:59:10 -04:00
NetdataVersion.cmake Simplify and unify the way we are handling versions. () 2024-05-23 14:38:51 +00:00
NetdataYAML.cmake Ensure that the choice of compiler and target is passed to sub-projects. () 2024-05-24 14:13:25 +03:00
Packaging.cmake Simplify and unify the way we are handling versions. () 2024-05-23 14:38:51 +00:00