From 390a90b36117d428fe002a19b2c47d0f127b45fe Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 8 Jan 2022 22:49:30 -0500 Subject: [PATCH] stop cmake from blocking builds on wsl --- CMakeLists.txt | 8 -------- libraries/katabasis/CMakeLists.txt | 8 -------- 2 files changed, 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bd5057a4..7439491d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,14 +13,6 @@ if(IS_IN_SOURCE_BUILD) message(FATAL_ERROR "You are building the Launcher in-source. Please separate the build tree from the source tree.") endif() -if (CMAKE_SYSTEM_NAME STREQUAL "Linux") - if(CMAKE_HOST_SYSTEM_VERSION MATCHES ".*[Mm]icrosoft.*" OR - CMAKE_HOST_SYSTEM_VERSION MATCHES ".*WSL.*" - ) - message(FATAL_ERROR "Building the Launcher is not supported in Linux-on-Windows distributions.") - endif() -endif() - ##################################### Set CMake options ##################################### set(CMAKE_AUTOMOC ON) diff --git a/libraries/katabasis/CMakeLists.txt b/libraries/katabasis/CMakeLists.txt index c6115881..d579dc29 100644 --- a/libraries/katabasis/CMakeLists.txt +++ b/libraries/katabasis/CMakeLists.txt @@ -5,14 +5,6 @@ if(IS_IN_SOURCE_BUILD) message(FATAL_ERROR "You are building Katabasis in-source. Please separate the build tree from the source tree.") endif() -if (CMAKE_SYSTEM_NAME STREQUAL "Linux") - if(CMAKE_HOST_SYSTEM_VERSION MATCHES ".*[Mm]icrosoft.*" OR - CMAKE_HOST_SYSTEM_VERSION MATCHES ".*WSL.*" - ) - message(FATAL_ERROR "Building Katabasis is not supported in Linux-on-Windows distributions. Use a real Linux machine, not a fraudulent one.") - endif() -endif() - project(Katabasis) enable_testing()