restore the GLUT check
authorkoda
Thu, 27 Jun 2013 12:18:35 +0200 (2013-06-27)
changeset 9274 9749524d1767
parent 9271 118cc5c1f677
child 9277 ad1ec7212ac7
restore the GLUT check
cmake_modules/utils.cmake
hedgewars/CMakeLists.txt
--- a/cmake_modules/utils.cmake	Thu Jun 27 12:09:24 2013 +0200
+++ b/cmake_modules/utils.cmake	Thu Jun 27 12:18:35 2013 +0200
@@ -12,7 +12,7 @@
     find_package(${_PKG_NAME})
     string(TOUPPER ${_PKG_NAME} _PKG_NAME_UP)
     if(NOT ${_PKG_NAME_UP}_FOUND)
-        message(SEND_ERROR "Missing ${_PKG_NAME}! Rerun cmake with -D${_VAR_NAME}=1 to build without it.")
+        message(SEND_ERROR "Missing ${_PKG_NAME}! Rerun cmake with -D${_VAR_NAME}=1 to skip this error.")
     endif(NOT ${_PKG_NAME_UP}_FOUND)
 endmacro(find_package_or_disable _PKG_NAME _VAR_NAME)
 
--- a/hedgewars/CMakeLists.txt	Thu Jun 27 12:09:24 2013 +0200
+++ b/hedgewars/CMakeLists.txt	Thu Jun 27 12:18:35 2013 +0200
@@ -105,6 +105,8 @@
     list(APPEND HW_LINK_LIBS avwrapper)
     add_definitions(-dUSE_VIDEO_RECORDING)
     add_flag_append(CMAKE_Pascal_FLAGS -Fl${LIBRARY_OUTPUT_PATH})
+    #only for SDL < 2, linking carried out by fpc
+    find_package_or_disable_msg(GLUT NOVIDEOREC "Video recording will not be built")
 endif()
 
 find_package_or_disable_msg(PNG NOPNG "Screenshots will be saved in BMP")