Skip to content

Commit

Permalink
Place bundled SFML include paths before others
Browse files Browse the repository at this point in the history
This allows to build with bundled SFML when system SFML (of another
version) is installed
  • Loading branch information
AMDmi3 committed Aug 20, 2014
1 parent a09cf1d commit 99df57a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ if(SFML_FOUND AND NOT SFML_VERSION_MAJOR) # SFML 1.x doesn't define SFML_VERSION
else()
message("Using static SFML ${SFML_FIND_VERSION_MAJOR}.${SFML_FIND_VERSION_MINOR} from Externals")
add_subdirectory(Externals/SFML)
include_directories(Externals/SFML/include)
include_directories(BEFORE Externals/SFML/include)
endif()

if(USE_UPNP)
Expand Down
2 changes: 1 addition & 1 deletion Externals/SFML/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include_directories(include)
include_directories(BEFORE include)

set(SRCS src/SFML/Network/Ftp.cpp
src/SFML/Network/Http.cpp
Expand Down

0 comments on commit 99df57a

Please sign in to comment.