Skip to content

Commit 85bd880

Browse files
committed
Fix wasm builds now that we are on C++20
1 parent 0c2a4c5 commit 85bd880

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ include (cmake/yup.cmake)
2323
_yup_get_project_version_string (${CMAKE_CURRENT_LIST_DIR}/modules yup_version)
2424
_yup_message (STATUS "Building project version ${yup_version}")
2525

26+
# Disable C++ module dependency scanning for Emscripten (incompatible with clang-scan-deps)
27+
if (EMSCRIPTEN)
28+
set (CMAKE_CXX_SCANDEP_SOURCE "")
29+
set (CMAKE_EXPERIMENTAL_CXX_SCANDEP_SOURCE "")
30+
endif()
31+
2632
if (YUP_PLATFORM_MAC)
2733
set (CMAKE_OSX_DEPLOYMENT_TARGET 11.0)
2834
set (CMAKE_XCODE_GENERATE_SCHEME OFF)

0 commit comments

Comments
 (0)