cmake: If we are cross compiling, we shouldn't make decisions based on

the build system distribution.

Signed-off-by: Philip Balister <philip@balister.org>
soapy_support
Dimitri Stolnikov 7 years ago
parent 20a5986ca0
commit 3fda9d6be5
  1. 6
      cmake/Modules/GrPlatform.cmake

@ -29,15 +29,15 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(LINUX TRUE)
endif()
if(LINUX AND EXISTS "/etc/debian_version")
if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/debian_version")
set(DEBIAN TRUE)
endif()
if(LINUX AND EXISTS "/etc/redhat-release")
if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/redhat-release")
set(REDHAT TRUE)
endif()
if(LINUX AND EXISTS "/etc/slackware-version")
if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/slackware-version")
set(SLACKWARE TRUE)
endif()

Loading…
Cancel
Save