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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0OTMxMTcsIm5iZiI6MTczOTQ5MjgxNywicGF0aCI6Ii8xMzI4Mzg2OS8zMTM0NTgyODktZTY5YTdkYjEtYWQ2My00ZWM0LWI1NTQtOTVlNTZjMTBkMWNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDAwMjY1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVlOTg3Mjc1M2FjZmFiYmVkOGM5MTkzYjExYWU2ZWQ2MTIwZjg1MDA0MWM3ZDA4MTI1ODAxODY2ZWQ4NjZmOTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.kxoA686tAewO1RFNcidNWt5ntzi--uGPBZsigLqvm0k)
![image](https://private-user-images.githubusercontent.com/13283869/313458313-2b1d09ba-b135-4892-a8b8-3b0409a2af31.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0OTMxMTcsIm5iZiI6MTczOTQ5MjgxNywicGF0aCI6Ii8xMzI4Mzg2OS8zMTM0NTgzMTMtMmIxZDA5YmEtYjEzNS00ODkyLWE4YjgtM2IwNDA5YTJhZjMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDAwMjY1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5YmI1MWZiYzA5ODEyYWFiY2M5NjQzOTI5NGZiNmY4NzFlMDNiMTg4NTA3MGIyNzU3NmE1ODI0YmFmMjUzNGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wstOqze5FJtW7zrbwER6hpITUy6djQk6jAVUYLcv7S0)
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: