diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-03-11 23:05:28 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-03-11 23:42:54 -0700 |
| commit | ece289b9a6466dca885fd2555ed783d70dcad9bf (patch) | |
| tree | 1d572f6ecf9bcabb7f409db4c0a29ce6683e5142 /scripts/toolchains | |
| parent | 6d748257418551dbf24ad0cec9b7e5591ccc3e4d (diff) | |
| download | vcpkg-ece289b9a6466dca885fd2555ed783d70dcad9bf.tar.gz vcpkg-ece289b9a6466dca885fd2555ed783d70dcad9bf.zip | |
[vcpkg] Don't set CMAKE_CROSSCOMPILING when targetting Linux-on-Linux
Diffstat (limited to 'scripts/toolchains')
| -rw-r--r-- | scripts/toolchains/linux.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/toolchains/linux.cmake b/scripts/toolchains/linux.cmake index 80983b500..d09d374c8 100644 --- a/scripts/toolchains/linux.cmake +++ b/scripts/toolchains/linux.cmake @@ -1,3 +1,6 @@ cmake_minimum_required(VERSION 3.5)
+if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
+ set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "")
+endif()
set(CMAKE_SYSTEM_NAME Linux CACHE STRING "")
|
