diff --git a/CMakeLists.txt b/CMakeLists.txt index 4190e68a88d7377b79626c41f8e38088a07c73bd..c27304ee23a001d51900fc1b002f33bc676f736e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ include("FetchContent") include(ExternalProject) -add_compile_options(-include xpdevplus.h) +add_compile_options("SHELL:-include xpdevplus.h") FetchContent_Declare( CONIO @@ -62,4 +62,4 @@ configure_file(xpdevplus.h.in xpdevplus.h) add_library(xpdevplus STATIC ${SOURCE}) target_link_libraries(xpdevplus ciolib comio encode hash uifc xpdev) target_include_directories(xpdevplus PUBLIC ${XPDevPlus_BINARY_DIR}) -target_compile_options(xpdevplus PUBLIC -include xpdevplus.h) +target_compile_options(xpdevplus PUBLIC "SHELL:-include xpdevplus.h")