浏览代码

Guard for Linux cross compiling.

Jay Sistar 10 年之前
父节点
当前提交
1cbfecc2f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()