This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[New Environment variable] add an Environment variable like VCPKG_DISABLE to disable vcpkg integration once but not global #37518
Labels
category:question
This issue is a question
Is your feature request related to a problem? Please describe.
node windows compile failed if zlib is installed by vcpkg and vcpkg integration install is done
I can confirm that because the node link error gone after vcpkg integration remove
Ref: nodejs/node#24448
Proposed solution
add VCPKG_DISABLE to disable vcpkg integration for the child process, because my other c++ project depend on vcpkg integration.
this can be done either skip on user side, or system side:
![image](https://private-user-images.githubusercontent.com/13283869/313458289-e69a7db1-ad63-4ec4-b554-95e56c10d1ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NDYyMjQsIm5iZiI6MTczODg0NTkyNCwicGF0aCI6Ii8xMzI4Mzg2OS8zMTM0NTgyODktZTY5YTdkYjEtYWQ2My00ZWM0LWI1NTQtOTVlNTZjMTBkMWNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDEyNDUyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhZDFhYWU4OTY2OGM4OTQ3OWIwYzk0MTM3Mzg5ODk2ZWE1OWM5ZTVhYWZmYzkyMjhkNTY1YjBmMDQ2NjMxMGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.k_kUg6V1epuDtMlEvrjkFvbvzGoiAjCS_ze5vkspx4E)
![image](https://private-user-images.githubusercontent.com/13283869/313458313-2b1d09ba-b135-4892-a8b8-3b0409a2af31.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NDYyMjQsIm5iZiI6MTczODg0NTkyNCwicGF0aCI6Ii8xMzI4Mzg2OS8zMTM0NTgzMTMtMmIxZDA5YmEtYjEzNS00ODkyLWE4YjgtM2IwNDA5YTJhZjMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDEyNDUyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThmYTUyNDAzNTRkMWM5ZDZkN2EwZmI4NTA4YmIzNDU2NWFiMjVjNmMzYzk3NWI2YzEzNTlhYzFjNjhlOTdhYzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GUTpd8z4uPiQxYnlv0IcNbLXecC7MLJLeE3plIK9DV8)
Describe alternatives you've considered
do vcpkg integration remove and run other c++ project with cmake toolchain
Additional context
https://learn.microsoft.com/en-us/vcpkg/users/config-environment
The text was updated successfully, but these errors were encountered: