Skip to content

Commit

Permalink
Modernize CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Jan 3, 2025
1 parent 0550ae2 commit 41de06f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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 )
Expand All @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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} )
Expand Down

0 comments on commit 41de06f

Please sign in to comment.