Skip to content

Commit 9990554

Browse files
committed
fixed building with vs 2022
1 parent 47e3be1 commit 9990554

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ if (WIN32)
166166
# "VCRUNTIME140.dll not found. Try reinstalling the app.", but give users
167167
# a choice to opt for the shared runtime if they want.
168168
option(USE_STATIC_CRT "Link against the static runtime libraries." ON)
169+
set(CMAKE_CXX_STANDARD 20)
169170

170171
# On Windows we need to instruct cmake to generate the .def in order to get the .lib required
171172
# when linking against dlls. CL.EXE will not generate .lib without .def file (or without pragma
@@ -452,7 +453,8 @@ endif()
452453

453454
# By default, build with Vulkan support on desktop platforms, although clients must request to use
454455
# it at run time.
455-
if (WIN32 OR WEBGL OR IOS)
456+
# if (WIN32 OR WEBGL OR IOS)
457+
if (WEBGL OR IOS)
456458
option(FILAMENT_SUPPORTS_VULKAN "Include the Vulkan backend" OFF)
457459
else()
458460
option(FILAMENT_SUPPORTS_VULKAN "Include the Vulkan backend" ON)

0 commit comments

Comments
 (0)