Skip to content

Commit fecec40

Browse files
committed
Enable module scanning on example target
1 parent 159db6b commit fecec40

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ if(BUILD_RAYLIB_CPP_MODULES AND TARGET raylib_cpp_modules)
6767
CXX_STANDARD 20
6868
CXX_STANDARD_REQUIRED ON
6969
CXX_EXTENSIONS OFF
70+
# The examples directory defaults to C++11, so module scanning is not
71+
# enabled for this target automatically; turn it on explicitly.
72+
CXX_SCAN_FOR_MODULES ON
7073
)
7174
endif()
7275

0 commit comments

Comments
 (0)