Mercurial > hg > orthanc
diff Resources/CMake/Compiler.cmake @ 3833:a3e38994d95a
compilation on mips qemu
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 15 Apr 2020 14:45:52 +0200 |
parents | d5cf43519a49 |
children | f5c86a00cae0 |
line wrap: on
line diff
--- a/Resources/CMake/Compiler.cmake Wed Apr 15 14:37:40 2020 +0200 +++ b/Resources/CMake/Compiler.cmake Wed Apr 15 14:45:52 2020 +0200 @@ -1,6 +1,7 @@ # This file sets all the compiler-related flags -if (CMAKE_CROSSCOMPILING OR +if ((CMAKE_CROSSCOMPILING AND NOT + "${CMAKE_SYSTEM_VERSION}" STREQUAL "CrossToolNg") OR "${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") # Cross-compilation necessarily implies standalone and static build SET(STATIC_BUILD ON)