From 6a1dd395e11504aded3b74beae4c95bf80fe2605 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Thu, 4 Apr 2013 22:38:07 +0000 Subject: [PATCH] made crypto++ compile on osx with some black magic compiler args --- tools/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 4bea5b14..2a693902 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -22,4 +22,9 @@ if (WIN32) list(APPEND cpp_src ${cpp_hdr}) endif() +if (APPLE) + # osx goes bat-shit crazy if we dont use these magical arguments. + set (CMAKE_CXX_FLAGS "-O2 -DCRYPTOPP_DISABLE_ASM -pipe -Wno-tautological-compare") +endif() + add_library(cryptopp STATIC ${cpp_src})