-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Visual Studio build instructions #2355
Closed
Closed
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
cb06cc7
Convert code to use boost::beast
seelabs 33c12c9
Remove pre-boost beast
seelabs c85c433
[FOLD] Remove VS2015 files
bachase c1383d9
[FOLD] Suppress boost warnings with VS17
bachase b29eddc
[FOLD] Add default CmakeSettings.json
bachase 42ebcdf
[FOLD] Add VisualStudio2017 build instructions
bachase 8b55956
[FOLD] Address PR comments
bachase 2a655b6
[FOLD] Address additional PR comments
bachase 9fce4c0
[FOLD] Fix whitespace
bachase 4e0cd68
Revert "[FOLD] Remove VS2015 files"
bachase 2376138
[FOLD] Address PR comments
bachase File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -357,6 +357,12 @@ macro(use_boost) | |
if(NOT Boost_FOUND) | ||
message(WARNING "Boost directory found, but not all components. May not be able to build.") | ||
endif() | ||
if(MSVC14) | ||
# VS2017 with boost <= 1.66.0 requires a flag to suppress warnings | ||
if(NOT Boost_VERSION VERSION_GREATER 106600) | ||
add_definitions(-DBOOST_CONFIG_SUPPRESS_OUTDATED_MESSAGE) | ||
endif() | ||
endif() | ||
include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) | ||
link_directories(${Boost_LIBRARY_DIRS}) | ||
else() | ||
|
@@ -383,9 +389,13 @@ macro(use_openssl openssl_min) | |
endif() | ||
|
||
if (WIN32) | ||
if (DEFINED ENV{OPENSSL_ROOT}) | ||
include_directories($ENV{OPENSSL_ROOT}/include) | ||
link_directories($ENV{OPENSSL_ROOT}/lib) | ||
if ((NOT DEFINED OPENSSL_ROOT) AND (DEFINED ENV{OPENSSL_ROOT})) | ||
set(OPENSSL_ROOT $ENV{OPENSSL_ROOT}) | ||
endif() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: weird indentation here as well |
||
file(TO_CMAKE_PATH "${OPENSSL_ROOT}" OPENSSL_ROOT) | ||
if (DEFINED OPENSSL_ROOT) | ||
include_directories(${OPENSSL_ROOT}/include) | ||
link_directories(${OPENSSL_ROOT}/lib) | ||
endif() | ||
else() | ||
if (static) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: weird indentation here