diff options
author | jmgpena <jorge@jmgpena.net> | 2015-01-03 18:10:00 +0000 |
---|---|---|
committer | jmgpena <jorge@jmgpena.net> | 2015-01-03 18:10:00 +0000 |
commit | 0a43c7df4284f5c096be4355539c016396d8661c (patch) | |
tree | 27466ec14cf9bc9ee73312b2396f15394cca8b79 /CMakeLists.txt | |
parent | a31ff149163c082eb06b7ee9cf925828241f858c (diff) | |
download | fork-ledger-0a43c7df4284f5c096be4355539c016396d8661c.tar.gz fork-ledger-0a43c7df4284f5c096be4355539c016396d8661c.tar.bz2 fork-ledger-0a43c7df4284f5c096be4355539c016396d8661c.zip |
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'.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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) |