Skip to content
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

Use CMake's install target for proper MSVC handling #194

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

benesch
Copy link
Collaborator

@benesch benesch commented Dec 11, 2019

The approach in #176 to handle MSVC was flawed, as it did not properly
account for CMake's RelWithDebInfo configuration type. The correct
approach is to ask CMake to install the library, rather than just
building it, at which point the library will be at a stable path
(OUT_DIR/lib) regardless of the directory structure that the particular
CMake generator uses.

Fix #191.

The approach in fede1024#176 to handle MSVC was flawed, as it did not properly
account for CMake's RelWithDebInfo configuration type. The correct
approach is to ask CMake to install the library, rather than just
building it, at which point the library will be at a stable path
(OUT_DIR/lib) regardless of the directory structure that the particular
CMake generator uses.

Fix fede1024#191.
@benesch benesch mentioned this pull request Dec 11, 2019
@benesch benesch merged commit b8849b5 into fede1024:master Dec 11, 2019
@benesch benesch deleted the build-fixes branch December 11, 2019 07:10
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.

Release build on windows
1 participant