Skip to content

Conversation

@sighingnow
Copy link
Contributor

Otherwise cmake will requires cpprestsdk available even when we not need it (and have excluded it).

Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
@sighingnow
Copy link
Contributor Author

Hi devs, any comment on this PR ?

/cc @BillyONeal @garethsb-sony

@barcharcraz
Copy link

It's in my queue, it looks pretty good to me at first glance

)
cpprest_find_websocketpp()
target_link_libraries(cpprest PRIVATE cpprestsdk_websocketpp_internal)
if(NOT CPPREST_EXCLUDE_WEBSOCKETS)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is CPPREST_EXCLUDE_WEBSOCKETS ever actually set anywhere. From my reading this will result in no actual change, since CPPREST_EXCLUDE_WEBSOCKETS will expand to "" (and cause a warning) or "false" and thus websockets will be found

I could be missing something.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose one could set it on the command line, but in that case it should really be an option

And given we already have CPPREST_WEBSOCKETS_IMPL I don't see what the point is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing out the usage of CPPREST_WEBSOCKETS_IMPL and after reading the code about CPPREST_WEBSOCKETS_IMPL=none branch again I have realized that this PR is unncessary.

I will close this PR, and many thanks for your review!

@barcharcraz
Copy link

how does this differ from just setting "CPPREST_WEBSOCKETS_IMPL" to "none"?

@sighingnow sighingnow closed this Sep 6, 2020
@sighingnow sighingnow deleted the ht/fix-websocketpp branch September 6, 2020 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants