Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2020-07-02 09:29:42 +0300
committerDavide Beatrici <git@davidebeatrici.dev>2020-07-12 00:33:25 +0300
commit7c048b75d37236c70ea389eb7fd364344c9d1d68 (patch)
treea2a1eb50f5500730569e9975849dea6a32f72962 /overlay_gl
parent4010db10c2aebf845fa535633aeea10be220f6b5 (diff)
Added experimental check for g++-multilib when compiling 32bit overlay
Diffstat (limited to 'overlay_gl')
-rw-r--r--overlay_gl/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/overlay_gl/CMakeLists.txt b/overlay_gl/CMakeLists.txt
index 32d139864..ea86ece62 100644
--- a/overlay_gl/CMakeLists.txt
+++ b/overlay_gl/CMakeLists.txt
@@ -31,7 +31,15 @@ if(NOT APPLE)
)
if(overlay-xcompile)
- message(STATUS "\nIf the 32 bit overlay library fails to compile, make sure the requirements are installed (\"g++-multilib\" package on Debian-based distributions).\n")
+ # Just check for this header file while using a 32bit target as a really small and incomplete check whether g++-multilib seems to be
+ # installed. If we don't find it, we can assume it's not there but if we do find it, we still don't know. Thus we still print the
+ # message about the 32bit target potentially failing due to missing g++-multilib.
+ CHECK_INCLUDE_FILE("sys/cdefs.h" FOUND_CDEFS "-m32")
+ if(NOT FOUND_CDEFS)
+ message(FATAL_ERROR "Can't find the 32bit version of sys/cdefs.h - did you install g++-multilib?")
+ else()
+ message(STATUS "\nIf the 32 bit overlay library fails to compile, make sure the requirements are installed (\"g++-multilib\" package on Debian-based distributions).\n")
+ endif()
set_target_properties(overlay_gl
PROPERTIES