ref: 250580dbe710a99d40fb75d3393d31b05f452912
parent: bdaa547981e512eb1404ba773212cc9b24460a4e
author: Azamat H. Hackimov <azamat.hackimov@gmail.com>
date: Tue Mar 1 15:59:27 EST 2016
Examples requires explicit C99 declaration on Linux.
--- a/dumb/cmake/CMakeLists.txt
+++ b/dumb/cmake/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.1)
project(libdumb C)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake-scripts)
@@ -121,7 +121,8 @@
if(BUILD_EXAMPLES)
add_executable(dumbout ../examples/dumbout.c)
add_executable(dumbplay ../examples/dumbplay.c)
-
+ set_property(TARGET dumbout PROPERTY C_STANDARD 99)
+ set_property(TARGET dumbplay PROPERTY C_STANDARD 99)
if(MINGW)
target_link_libraries(dumbplay mingw32)
endif()