made crypto++ compile on osx with some black magic compiler args

This commit is contained in:
Nick Bolton 2013-04-04 22:38:07 +00:00
parent d0081ebd7a
commit 6a1dd395e1
1 changed files with 5 additions and 0 deletions

View File

@ -22,4 +22,9 @@ if (WIN32)
list(APPEND cpp_src ${cpp_hdr}) list(APPEND cpp_src ${cpp_hdr})
endif() 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}) add_library(cryptopp STATIC ${cpp_src})