From f2a7bf2f324a27655944ac66f38b0e474a8b95aa Mon Sep 17 00:00:00 2001 From: endyul Date: Wed, 24 Dec 2014 19:48:50 +0800 Subject: [PATCH] fixed compile error on osx --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ddbf75..2dda73d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,10 @@ include_directories ( # include_directories ($ENV{JAVA_HOME}/include/linux) #endif(WIN32) +if(APPLE) + set(CMAKE_CXX_FLAGS "-stdlib=libstdc++") +endif(APPLE) + if(WIN32) link_directories (${LTP_HOME}/lib/Debug) else(WIN32)