-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[vcpkg] Rewrite CMake build system to be more target-based #12698
Conversation
Stupid question which I always wondered about: |
@Neumann-A we don't require people to install cmake before they bootstrap vcpkg, and we can't generate it ahead of time because cmake-generated projects have dependencies on the system they're run on. |
But if it’s not available, vcpkg is going to download it at the first install request. So why not right at the bootstrap (similar to osx/Linux)? |
@cenit that would require writing the logic in powershell 2, which is a pain in the butt. I'd rather wait for us to have user-local installers and just cut it out entirely |
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.
Waiting for the '# GCC and clang have different names for the same warning' comment
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.
Please ensure we want to link stdc++fs
under libc++
, since that's a change in behavior.
Thanks @ras0219! Co-authored-by: ras0219 <[email protected]>
…#12698) * Change to using more target-focused cmake * Add vcpkg_target_add_warning_options * targetify the rest * move the globs together * Force-include pch.h on non-windows * Rename VCPKGLIB_NON_PCH_* to VCPKGLIB_* in globs * Remove `include "pch.h"`s * missed a few lines * fix build * fix CMAKE_CURRENT_SOURCE_DIR * try to fix VCPKG_REQUIRE_LINK_CXXFS * change msvc-stl logic * fix build * CR * clang-format * Apply suggestions from code review Thanks @ras0219! Co-authored-by: JackBoosY <[email protected]> Co-authored-by: ras0219 <[email protected]>
This is now unrelated to the vcxproj build system. We're going to do a different solution for the vcxproj build system.
Additionally, this PR removes the
"pch.h"
at the front of every vcpkglib file, and allows building for VS2015 in the CMake build system.