Browse Source

Warn and disable dynamic_arch when not supported on the architecture

pull/2165/head
Martin Kroeker GitHub 6 years ago
parent
commit
c379ea73b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      cmake/system.cmake

+ 5
- 2
cmake/system.cmake View File

@@ -199,12 +199,15 @@ if (NEED_PIC)
endif()
endif ()

if (X86 OR X86_64 OR ARM64 OR PPC)
if (DYNAMIC_ARCH)
if (DYNAMIC_ARCH)
if (X86 OR X86_64 OR ARM64 OR PPC)
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_ARCH")
if (DYNAMIC_OLDER)
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_OLDER")
endif ()
else ()
unset (DYNAMIC_ARCH)
message (STATUS "DYNAMIC_ARCH is not supported on the target architecture, removing")
endif ()
endif ()



Loading…
Cancel
Save