--- CMakeLists.txt.orig	2018-12-12 21:29:43 UTC
+++ CMakeLists.txt
@@ -47,10 +47,11 @@ message(STATUS "xeus binary version: v${
 # Dependencies
 # ============
 
+FIND_PACKAGE(PkgConfig)
 find_package(nlohmann_json 3.2.0 REQUIRED)
 find_package(xtl 0.5 REQUIRED)
 find_package(cppzmq 4.3.0 REQUIRED)
-find_package(cryptopp REQUIRED)
+pkg_check_modules(cryptopp libcryptopp REQUIRED) # see https://github.com/QuantStack/xeus/issues/113
 
 # On Unix platforms, ZeroMQ is built with autotools and pkg-config is
 # required to locate it.
@@ -132,7 +133,7 @@ target_link_libraries(xeus
                       PUBLIC cppzmq
                       PUBLIC nlohmann_json::nlohmann_json
                       PUBLIC xtl
-                      PRIVATE cryptopp-static)
+                      PRIVATE cryptopp)
 
 if(NOT MSVC)
     if(APPLE)
@@ -156,17 +157,11 @@ set_target_properties(xeus PROPERTIES
 
 include(CheckCXXCompilerFlag)
 string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
-OPTION(DISABLE_ARCH_NATIVE "disable -march=native flag" OFF)
 
 target_compile_features(xeus PRIVATE cxx_std_11)
 
 if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel")
     target_compile_options(xeus PUBLIC -Wunused-parameter -Wextra -Wreorder)
-    if (DISABLE_ARCH_NATIVE)
-        target_compile_options(xeus PUBLIC -mtune=generic)
-    else()
-        target_compile_options(xeus PUBLIC -march=native)
-    endif()
 
     # Enable link time optimization and set the default symbol
     # visibility to hidden (very important to obtain small binaries)
@@ -202,7 +197,7 @@ if(MSVC)
 elseif(APPLE)
     target_compile_definitions(xeus PUBLIC -DGUID_CFUUID)
 else()
-    target_compile_definitions(xeus PUBLIC -DGUID_LIBUUID)
+    target_compile_definitions(xeus PUBLIC -DGUID_LIBUUID ${cryptopp_CFLAGS_OTHER})
 endif()
 
 # Examples
