Browse Source

Guard for Linux cross compiling.

Jay Sistar 10 years ago
parent
commit
1cbfecc2f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Build/CMake/Modules/AtomicUtils.cmake

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

@@ -26,6 +26,6 @@ macro(GroupSources curdir)
 
 
 endmacro()
 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.")
   set(LINUX TRUE CACHE BOOL "Indicates if host is Linux.")
 endif()
 endif()