From 8a380c6620ebaa40d6088c530b62cda8653b619c Mon Sep 17 00:00:00 2001 From: miaodx Date: Mon, 29 May 2017 23:47:33 +0800 Subject: [PATCH] add FRNETLIB_LIB for apple and linux. --- examples/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index e426c4e..7d7ca45 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -14,8 +14,10 @@ if( WIN32 ) elseif(APPLE) set( ADDITIONAL_LIB "" ) + set( FRNETLIB_LIB frnetlib) else() set( ADDITIONAL_LIB "" ) + set( FRNETLIB_LIB frnetlib) #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -m64 -fPIC -std=c++14 -pthread -lmbedtls -lmbedx509 -lmbedcrypto") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -m64 -fPIC -std=c++14 -pthread") endif()