Skip to content

Commit

Permalink
Fix SFML and Boost headers not counting as system headers
Browse files Browse the repository at this point in the history
  • Loading branch information
LB-- committed Dec 30, 2013
1 parent f9b9bb6 commit 0110ad3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -61,6 +61,7 @@ find_package(SFML 2 REQUIRED graphics window network system audio)
if(SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
link_directories(${SFML_ROOT}/lib)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem ${SFML_INCLUDE_DIR}")
else()
message(FATAL_ERROR "SFML not found by find_package. Try specifying SFML_ROOT")
endif()
Expand All @@ -72,6 +73,7 @@ find_package(Boost 1.54.0 COMPONENTS filesystem system REQUIRED)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${BOOST_ROOT}/lib)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem ${Boost_INCLUDE_DIRS}")
else()
message(FATAL_ERROR "Boost not found by find_package. Try specifying BOOST_ROOT")
endif()
Expand Down

0 comments on commit 0110ad3

Please sign in to comment.