Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.86 KB | None | 0 0
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 027ff7d..a851f02 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -43,6 +43,7 @@
  6.    find_package ( SDL2 COMPONENTS mixer gfx image)
  7.    find_package ( Yaml_cpp 0.5.0)
  8.    find_package ( OpenGL )
  9. +  find_package ( Boost )
  10.  
  11.    if ( NOT OPENGL_FOUND )
  12.       message ( FATAL_ERROR "Can't find OpenGL; how does that even happen?" )
  13. @@ -84,6 +85,13 @@
  14.      include_directories ( ${YAMLCPP_INCLUDE_DIR} )
  15.      message ( "found yaml-cpp(${YAMLCPP_LIBRARY_DIRS}:${YAMLCPP_INCLUDE_DIR})" )
  16.    endif ( NOT YAMLCPP_FOUND )
  17. +
  18. +  if ( NOT Boost_FOUND )
  19. +    message ( FATAL_ERROR "Can't find boost which is required" )
  20. +  else ()
  21. +    include_directories ( ${Boost_INCLUDE_DIRS} )
  22. +    message ( "found boost(${Boost_LIBRARY_DIRS}:${Boost_INCLUDE_DIRS})" )
  23. +  endif ( NOT Boost_FOUND )
  24.  endif()
  25.  
  26.  # Read version number
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement