-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Update windows static builds. #103
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
Changes from all commits
dd47116
3eead40
8f5f092
eca2cc0
eb25d04
1da9179
f8524e7
0959579
b4f9ba7
5bc4e86
eff0670
293f52d
47bc622
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,27 +126,6 @@ int main() { | |
| std::cout << "Reason was: " << *reason << std::endl; | ||
| } | ||
|
|
||
| // Identify a series of contexts. | ||
|
Member
Author
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. Remove this, because sleep isn't just included in windows. |
||
| for (auto context_index = 0; context_index < 4; context_index++) { | ||
| std::cout << "Identifying user: " | ||
| << "ryan" << context_index << std::endl; | ||
| auto future = client.IdentifyAsync( | ||
| ContextBuilder() | ||
| .kind("user", "ryan" + std::to_string(context_index)) | ||
| .build()); | ||
| auto before_ident = | ||
| client.BoolVariationDetail("my-boolean-flag", false); | ||
| future.get(); | ||
| auto after_ident = client.BoolVariationDetail("my-boolean-flag", false); | ||
|
|
||
| std::cout << "For: " | ||
| << "ryan" << context_index << ": " | ||
| << "Before ident complete: " << *before_init | ||
| << " After: " << *after_ident << std::endl; | ||
|
|
||
| sleep(1); | ||
| } | ||
|
|
||
| // Sit around. | ||
| std::cout << "Press enter to exit" << std::endl << std::endl; | ||
| std::cin.get(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,10 @@ target_link_libraries(${LIBNAME} | |
|
|
||
| add_library(launchdarkly::client ALIAS ${LIBNAME}) | ||
|
|
||
|
|
||
| set_property(TARGET ${LIBNAME} PROPERTY | ||
|
Member
Author
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. We may need to have a more complex version of this eventually. But as is we always dynamically link against the windows runtime. Either the debug or release version. |
||
| MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL") | ||
|
|
||
| install(TARGETS ${LIBNAME}) | ||
| # Using PUBLIC_HEADERS would flatten the include. | ||
| # This will preserve it, but dependencies must do the same. | ||
|
|
||
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.
Common being included was causing all kinds of missing symbols, when all those are already in client.