From e1d0831e3bc2b9c7d83bb4d062d7bf1391f3fc74 Mon Sep 17 00:00:00 2001 From: Ivan Shakhov Date: Wed, 24 Sep 2025 11:15:55 +0200 Subject: [PATCH] fix cmake compilation of the example project --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d735a6a..fe55943 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,8 @@ target_sources(${LIBNAME} PRIVATE src/register_types.cpp src/register_types.h + src/example_class.cpp + src/example_class.h ) # Fetch a list of the xml files to use for documentation and add to our target @@ -63,6 +65,9 @@ endif() target_link_libraries(${LIBNAME} PRIVATE godot-cpp) +# Require at least C++17 for this target +set_property(TARGET ${LIBNAME} PROPERTY CXX_STANDARD 17) + set_target_properties(${LIBNAME} PROPERTIES # The generator expression here prevents msvc from adding a Debug or Release subdir.