changeset 336:c4a1499164a3

Need to define _GNU_SOURCE when the compiler is not gcc (Submitted by Chris Brody)
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 01 Apr 2009 10:38:16 +0900
parents 7bdc3fc65ae2
children c53934b11609
files CMakeLists.txt
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Wed Apr 01 10:29:34 2009 +0900
+++ b/CMakeLists.txt	Wed Apr 01 10:38:16 2009 +0900
@@ -12,6 +12,9 @@
 # Location of additional CMake modules
 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
 
+# All source code should be POSIX 200112L compatible, but some other extensions might be used, so:
+ADD_DEFINITIONS(-D_GNU_SOURCE)
+
 # Location for the include files
 INCLUDE_DIRECTORIES(include)
 
"Welcome to our mercurial repository"