diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b864d7..1e92823 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required( VERSION 3.7.2 ) +cmake_minimum_required( VERSION 3.22 ) set( SFGUI_MAJOR_VERSION 0 ) set( SFGUI_MINOR_VERSION 4 ) @@ -24,7 +24,7 @@ option( SFML_STATIC_LIBRARIES "Do you want to link SFML statically?" # Find packages. find_package( OpenGL REQUIRED ) -if( NOT TARGET sfml-graphics ) +if( NOT TARGET SFML::Graphics ) find_package( SFML 3 REQUIRED COMPONENTS Graphics ) endif() diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 425e825..427d93d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required( VERSION 3.7.2 ) +cmake_minimum_required( VERSION 3.22 ) function( build_example SAMPLE_NAME SOURCES ) add_executable( ${SAMPLE_NAME} ${SOURCES} )