Skip to content

Commit 99df57a

Browse files
committed
Place bundled SFML include paths before others
This allows to build with bundled SFML when system SFML (of another version) is installed
1 parent a09cf1d commit 99df57a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ if(SFML_FOUND AND NOT SFML_VERSION_MAJOR) # SFML 1.x doesn't define SFML_VERSION
618618
else()
619619
message("Using static SFML ${SFML_FIND_VERSION_MAJOR}.${SFML_FIND_VERSION_MINOR} from Externals")
620620
add_subdirectory(Externals/SFML)
621-
include_directories(Externals/SFML/include)
621+
include_directories(BEFORE Externals/SFML/include)
622622
endif()
623623

624624
if(USE_UPNP)

Externals/SFML/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include_directories(include)
1+
include_directories(BEFORE include)
22

33
set(SRCS src/SFML/Network/Ftp.cpp
44
src/SFML/Network/Http.cpp

0 commit comments

Comments
 (0)