From 0c672329da425bce22691437c40d5eccf79e856e Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sun, 10 Aug 2025 12:50:40 -0700 Subject: [PATCH] Fix asset build on Windows --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 46dbff68..2c349d49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ find_program(SDL_SHADERCROSS_BIN NAMES "shadercross") find_package(Python3 3.12 COMPONENTS Interpreter) option(ISLE_BUILD_APP "Build isle application" ON) -option(ISLE_BUILD_ASSETS "Build assets from the /assets directory" OFF) +option(ISLE_BUILD_ASSETS "Build assets from the /assets directory" OFF) option(ISLE_ASAN "Enable Address Sanitizer" OFF) option(ISLE_UBSAN "Enable Undefined Behavior Sanitizer" OFF) option(ISLE_WERROR "Treat warnings as errors" OFF) @@ -706,6 +706,9 @@ if (MSVC) if (TARGET isle-config) target_compile_options(isle-config PRIVATE "-Zc:__cplusplus") endif() + if (TARGET asset_generator) + target_compile_options(asset_generator PRIVATE "-Zc:__cplusplus") + endif() endif() endif()