From 8cc636e477b36d28a8e4e2870a2ffecb4caca4d7 Mon Sep 17 00:00:00 2001 From: Stephen Hurd <deuce@synchro.net> Date: Fri, 25 Feb 2022 16:43:57 -0500 Subject: [PATCH] We don't need to use SHELL: with /FI --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0f2c78..0376cca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,9 +3,10 @@ project (XPDevPlus CXX) include("FetchContent") include(ExternalProject) +enable_language(C) if(MSVC) - add_compile_options("SHELL:/FI ${XPDevPlus_BINARY_DIR}/xpdevplus.h") + add_compile_options("/FI${XPDevPlus_BINARY_DIR}/xpdevplus.h") else() add_compile_options("SHELL:-include xpdevplus.h") endif() @@ -52,7 +53,6 @@ FetchContent_Declare( ) FetchContent_MakeAvailable(XPDev) -enable_language(C) set(SOURCE $<TARGET_OBJECTS:ciolib> $<TARGET_OBJECTS:comio> -- GitLab