From 0a43c7df4284f5c096be4355539c016396d8661c Mon Sep 17 00:00:00 2001 From: jmgpena Date: Sat, 3 Jan 2015 18:10:00 +0000 Subject: Fix for BUG 985 http://bugs.ledger-cli.org/show_bug.cgi?id=985 Fix compilation issue on Cygwin by adding the '-U__STRICT_ANSI__' flag to GCC. This avoids GCC disabling some stdlib functions like 'setenv' and 'popen'. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cc49fa8..ee88fe4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,10 @@ enable_testing() add_definitions(-std=c++11) +if (CYGWIN) + add_definitions(-U__STRICT_ANSI__) +endif() + ######################################################################## option(USE_PYTHON "Build support for the Python scripting bridge" OFF) -- cgit v1.2.3