From df0be9fb2c78716dc82d86b11a27710d53567624 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sat, 31 Aug 2013 18:02:06 -0700 Subject: [PATCH] Fixing compilation on Cygwin Fixes #529. --- cpp/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index cd9a1745..62873efb 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -123,8 +123,8 @@ if( MSVC OR CYGWIN ) add_definitions( -DBOOST_ALL_NO_LIB ) endif() -if( WIN32 ) - # BOOST_PYTHON_SOURCE makes boost use the correct __declspec and +if( WIN32 OR CYGWIN ) + # BOOST_PYTHON_SOURCE makes boost use the correct __declspec add_definitions( -DBOOST_PYTHON_SOURCE -DBOOST_THREAD_USE_LIB ) if ( 64_BIT_PLATFORM ) # Enables python compilation for 64-bit Windows