Skip to content

Conversation

vadz
Copy link
Contributor

@vadz vadz commented Feb 21, 2024

When PackagesRoot is set to some global directory, nuget packages are installed in it and not under application-specific nuget directory, so using the default value of NUGET_PACKAGES_PATH didn't work and CMake configure step failed because it didn't find third-party packages files.

Fix this by allowing to specify -DNUGET_PACKAGES_PATH=$PackagesRoot on CMake command line to override the default value.


I've ran into this while working on my other PR and had to make this change as I couldn't build the application without it. I'm not a CMake expert (far from it), but AFAICS this shouldn't break anything and allows the build to work here.

When PackagesRoot is set to some global directory, nuget packages are
installed in it and not under application-specific nuget directory, so
using the default value of NUGET_PACKAGES_PATH didn't work and CMake
configure step failed because it didn't find third-party packages files.

Fix this by allowing to specify -DNUGET_PACKAGES_PATH=$PackagesRoot on
CMake command line to override the default value.
@janwilmans janwilmans merged commit 91d63ac into CobaltFusion:develop Feb 22, 2024
@janwilmans
Copy link
Member

Thank you for you contributions!! I merged them and will make new release asap (however, I see that the automatic version numbering is broken since I moved to CMake, so I will have to fix that first ;)

@janwilmans janwilmans self-requested a review February 22, 2024 09:45
@vadz vadz deleted the cmake-nuget-dir branch February 22, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants