Skip to content

Commit cba78b9

Browse files
JonnyPtnChrisThrasher
authored andcommitted
Exclude SFML from the All target, and flag as a system library
1 parent 7f96df4 commit cba78b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.16)
1+
cmake_minimum_required(VERSION 3.28)
22
project(CMakeSFMLProject LANGUAGES CXX)
33

44
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
@@ -8,7 +8,9 @@ include(FetchContent)
88
FetchContent_Declare(SFML
99
GIT_REPOSITORY https://github.com/SFML/SFML.git
1010
GIT_TAG 2.6.x
11-
GIT_SHALLOW ON)
11+
GIT_SHALLOW ON
12+
EXCLUDE_FROM_ALL
13+
SYSTEM)
1214
FetchContent_MakeAvailable(SFML)
1315

1416
add_executable(main src/main.cpp)

0 commit comments

Comments
 (0)