Explorar o código

Guard for Linux cross compiling.

Jay Sistar %!s(int64=10) %!d(string=hai) anos
pai
achega
1cbfecc2f9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Build/CMake/Modules/AtomicUtils.cmake

+ 1 - 1
Build/CMake/Modules/AtomicUtils.cmake

@@ -26,6 +26,6 @@ macro(GroupSources curdir)
 
 endmacro()
 
-if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+if(NOT CMAKE_CROSSCOMPILING AND ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
   set(LINUX TRUE CACHE BOOL "Indicates if host is Linux.")
 endif()