Skip to content

Commit

Permalink
Fix openssl path for CMake build system on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikDeak committed Jul 20, 2021
1 parent 2a52340 commit 212c5bf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Scripts/Build/BuildDarwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
configureCMake() {

cmake -S "${productRepoPath}" -B "${productBuildPath}" \
-D CMAKE_PREFIX_PATH="${libQtPath}" \
-D CMAKE_PREFIX_PATH="${libQtPath};${openSSLPath}" \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_OSX_DEPLOYMENT_TARGET=10.12 \
-D CMAKE_OSX_ARCHITECTURES=x86_64 \
-D SYNERGY_ENTERPRISE=ON \
-D SYNERGY_REVISION="${productRevision}" \
|| exit 1

}

buildApplication() {
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Build/BuildWindows.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

cmake -S "%productRepoPath%" -B "%productBuildPath%"^
-G "%cmakeGenerator%"^
-D CMAKE_PREFIX_PATH="%libQtPath%"^
-D CMAKE_PREFIX_PATH="%libQtPath%;%openSSLPath%"^
-D CMAKE_BUILD_TYPE=Release^
-D SYNERGY_ENTERPRISE=ON^
-D SYNERGY_REVISION="%productRevision%"^
Expand Down
1 change: 1 addition & 0 deletions Scripts/Detail/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Configuration():
toolsPath = ""

libQtPath = ""
openSSLPath = ""
vcvarsallPath = ""
cmakeGenerator = ""
linuxdeployURL = ""
Expand Down
4 changes: 3 additions & 1 deletion Scripts/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@
[Windows]

libQtPath = C:\Qt\Qt5.12.9\5.12.9\msvc2017_64
openSSLPath = .\Synergy-Core\ext\openssl\windows\x64
vcvarsallPath = C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat

# Run cmake --help to choose a suitable generator
cmakeGenerator = Visual Studio 16 2019

[Darwin]

libQtPath = ~/Qt5.12.9/5.12.9/clang_64
libQtPath = ~/Qt5.12.9/5.12.9/clang_64
openSSLPath = /usr/local/opt/openssl

[Linux]

Expand Down
2 changes: 1 addition & 1 deletion Synergy-Core

0 comments on commit 212c5bf

Please sign in to comment.