1# Copyright (c) 2017 The WebM project authors. All Rights Reserved. 2# 3# Use of this source code is governed by a BSD-style license 4# that can be found in the LICENSE file in the root of the source 5# tree. An additional intellectual property rights grant can be found 6# in the file PATENTS. All contributing project authors may 7# be found in the AUTHORS file in the root of the source tree. 8if(NOT LIBWEBM_BUILD_X86_64_MINGW_GCC_CMAKE_) 9 set(LIBWEBM_BUILD_X86_64_MINGW_GCC_CMAKE_ 1) 10 11 set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 set(CMAKE_SYSTEM_NAME "Windows") 13 14 if("${CROSS}" STREQUAL "") 15 set(CROSS x86_64-w64-mingw32-) 16 endif() 17 18 set(CMAKE_C_COMPILER ${CROSS}gcc) 19 set(CMAKE_CXX_COMPILER ${CROSS}g++) 20 21 # Disable googletest CMake usage for mingw cross compiles. 22 set(LIBWEBM_DISABLE_GTEST_CMAKE 1) 23 24endif() # LIBWEBM_BUILD_X86_64_MINGW_GCC_CMAKE_ 25