From 2aa1c6bb79a374fbcc4f531907f152940a76a050 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Wed, 28 Aug 2024 12:01:41 +0000 Subject: [PATCH] Change __cmake_cxx23 if found --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 137efb7..530d431 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,8 +25,9 @@ endif() file(GLOB_RECURSE SOURCES "src/*.cpp") -set_target_properties(__cmake_cxx23 PROPERTIES CXX_EXTENSIONS OFF) - +if(TARGET __cmake_cxx23) + set_target_properties(__cmake_cxx23 PROPERTIES CXX_EXTENSIONS OFF) +endif() file( DOWNLOAD