Skip to content

Commit

Permalink
Exclude SFML from the All target, and flag as a system library
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyPtn authored and ChrisThrasher committed Aug 29, 2024
1 parent 7f96df4 commit cba78b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.28)
project(CMakeSFMLProject LANGUAGES CXX)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
Expand All @@ -8,7 +8,9 @@ include(FetchContent)
FetchContent_Declare(SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 2.6.x
GIT_SHALLOW ON)
GIT_SHALLOW ON
EXCLUDE_FROM_ALL
SYSTEM)
FetchContent_MakeAvailable(SFML)

add_executable(main src/main.cpp)
Expand Down

0 comments on commit cba78b9

Please sign in to comment.