-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ include(./get_cpm.cmake) | |
|
||
####################################### | ||
# cmake lib | ||
CPMAddPackage(gh:iboB/[email protected].1) | ||
CPMAddPackage(gh:iboB/[email protected].2) | ||
|
||
set(CMAKE_MODULE_PATH | ||
${CMAKE_MODULE_PATH} | ||
|
@@ -20,14 +20,15 @@ set(CMAKE_MODULE_PATH | |
include(icm_dev_mode) | ||
include(icm_add_lib) | ||
include(icm_bigobj) | ||
include(icm_option) | ||
|
||
####################################### | ||
# options | ||
|
||
option(FISHNETS_STATIC "fishnets: build as static lib" OFF) | ||
option(FISHNETS_BUILD_TESTS "fishnets: build tests" ${ICM_DEV_MODE}) | ||
option(FISHNETS_BUILD_EXAMPLES "fishnets: build examples" ${ICM_DEV_MODE}) | ||
option(FISHNETS_SSL "fisnets: add ssl and secure websocket support" ON) | ||
icm_auto_option(FISHNETS_SSL "fisnets: add ssl and secure websocket support" AUTO) | ||
|
||
if(ICM_DEV_MODE) | ||
mark_as_advanced(FISHNETS_BUILD_TESTS FISHNETS_BUILD_EXAMPLES) | ||
|
@@ -39,8 +40,10 @@ CPMAddPackage(gh:iboB/[email protected]) | |
CPMAddPackage(gh:iboB/[email protected]) | ||
|
||
find_package(Threads REQUIRED) | ||
set(fishnetsHaveSsl FALSE) | ||
if(FISHNETS_SSL) | ||
find_package(OpenSSL REQUIRED) | ||
find_package(OpenSSL ${FISHNETS_SSL_REQUIRED}) | ||
set(fishnetsHaveSsl TRUE) | ||
endif() | ||
|
||
if(NOT TARGET Boost::boost) | ||
|
This file contains 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
This file contains 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