Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Add a MSVC2019_COMPATIBILITY flag to the conan recipe #7

Open
mscofield0 opened this issue Jun 23, 2021 · 1 comment
Open

Add a MSVC2019_COMPATIBILITY flag to the conan recipe #7

mscofield0 opened this issue Jun 23, 2021 · 1 comment

Comments

@mscofield0
Copy link

The recipe fails to install on MSVC 2019 due to this flag being necessary.

@helmesjo
Copy link
Owner

helmesjo commented Jul 12, 2021

Yeah I remember there being some issues regarding that which weren't trivial to circumvent automagically (requires some changes in the magnum library if I remember correctly (?)).

For now I'd just add the following before finding the package (I use the cmake_find_package generator, but the equivalent for any other generator would probably work):

set(CORRADE_MSVC2019_COMPATIBILITY ON)
find_package(magnum REQUIRED)

Edit
It's FindCorrade.cmake which expects that to be set, which is indirectly used by FindMagnum.cmake in my case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants