简体   繁体   中英

VS2013 C++: Ignore Platform Include Folder

I have a problem when moving to our company's build system over which I have limited control. They have installed DirectX SDK plus Windows 8.1 SDK... My applications is using 8.1 specific features that conflict with DirectX SDK (it's deprecated for a reason). So basically, they have the DirectX SDK hardwired into include lookup and thus headers will resolve to it instead of Windows SDK.

Is there a way to exclude specific folders from "#include" lookup no matter if they were specified? Or is there a way to remove the DirectX SDK from the built-in lookup by some MSBuild command line argument etc?

Hypothetical Solution:

IgnoreIncludeDirectories="C:/program files/directx SDK/include"

:)

Thanks!

Actually it was easy.

set DXSDK_DIR=
%run your build script%

I am not sure if that is a general solution, but it worked and was suggested by one of our build engineers :). Maybe it will help someone else too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM