Created
April 15, 2023 09:37
-
-
Save vitalyster/fc05cc04d7e816dfc1377a304569d869 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index a48de120..d2dc9804 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -416,17 +416,6 @@ endif() | |
if (NOT DEFINED NETROCKS OR NETROCKS) | |
message(STATUS "NETROCKS plugin enabled") | |
- if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") | |
- # workaround for brew/macports vs system openssl conflicts | |
- if(IS_DIRECTORY "/usr/local/opt/[email protected]/include" AND IS_DIRECTORY "/usr/local/opt/[email protected]/lib") | |
- set(OPENSSL_LIBRARIES "/usr/local/opt/[email protected]/lib/libcrypto.dylib;/usr/local/opt/[email protected]/lib/libssl.dylib") | |
- set(OPENSSL_INCLUDE_DIRS "/usr/local/opt/[email protected]/include") | |
- elseif(EXISTS "/opt/local/lib/libssl.dylib" AND IS_DIRECTORY "/opt/local/include/openssl") | |
- set(OPENSSL_LIBRARIES "/opt/local//lib/libcrypto.dylib;/opt/local/lib/libssl.dylib") | |
- set(OPENSSL_INCLUDE_DIRS "/opt/local/include") | |
- endif() | |
- endif() | |
- | |
find_package(OpenSSL) | |
if(OPENSSL_FOUND) | |
message(STATUS "OpenSSL found -> enjoy FTPS support in NetRocks") | |
diff --git a/README.md b/README.md | |
index fdba3796..cbe6fa79 100644 | |
--- a/README.md | |
+++ b/README.md | |
@@ -157,6 +157,7 @@ _with make:_ | |
```sh | |
mkdir _build | |
cd _build | |
+export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl/lib/pkgconfig" | |
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DUSEWX=yes -DCMAKE_BUILD_TYPE=Release .. | |
cmake --build . -j$(sysctl -n hw.logicalcpu) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment