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()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (NOT CMAKE_CROSSCOMPILE)
|
||||||
set(GLIBC_DETECT_TEST_C
|
set(GLIBC_DETECT_TEST_C
|
||||||
"
|
"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -119,6 +120,7 @@ if (GLIBC_VERSION AND GLIBC_COMPILE)
|
|||||||
else()
|
else()
|
||||||
message("Could not detect glibc version.")
|
message("Could not detect glibc version.")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if ("$ENV{CROSSCOMPILE_MACHINENAME}" STREQUAL "")
|
if ("$ENV{CROSSCOMPILE_MACHINENAME}" STREQUAL "")
|
||||||
execute_process(
|
execute_process(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user