CMake: Do not try to test for the glibc version when cross-compiling.
This commit is contained in:
parent
b792162113
commit
9d8d653877
@ -96,6 +96,7 @@ if (NOT (${OSNAME} STREQUAL "Linux"))
|
||||
return()
|
||||
endif()
|
||||
|
||||
if (NOT CMAKE_CROSSCOMPILE)
|
||||
set(GLIBC_DETECT_TEST_C
|
||||
"
|
||||
#include <stdio.h>
|
||||
@ -119,6 +120,7 @@ if (GLIBC_VERSION AND GLIBC_COMPILE)
|
||||
else()
|
||||
message("Could not detect glibc version.")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if ("$ENV{CROSSCOMPILE_MACHINENAME}" STREQUAL "")
|
||||
execute_process(
|
||||
|
Loading…
x
Reference in New Issue
Block a user