stop cmake from blocking builds on wsl
This commit is contained in:
parent
42eb011e3f
commit
390a90b361
@ -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.")
|
message(FATAL_ERROR "You are building the Launcher in-source. Please separate the build tree from the source tree.")
|
||||||
endif()
|
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 options #####################################
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
@ -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.")
|
message(FATAL_ERROR "You are building Katabasis in-source. Please separate the build tree from the source tree.")
|
||||||
endif()
|
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)
|
project(Katabasis)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user