Adding additional library and include paths when compiling from command line

前端 未结 2 582
耶瑟儿~
耶瑟儿~ 2020-12-15 08:25

I\'m trying to add additional paths to be used by my project group during compilation. Since C++ Builder 2010 uses msbuild I have tried looking at the docu

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 08:43

    For VS2013, just define environment variables before running msbuild:

    set "INCLUDE=%additional_include_path%;%INCLUDE%"
    set "LIB=%additional_lib_path%;%LIB%"
    REM use environment variables for INCLUDE and LIB values
    set UseEnv=true
    

    Reference: MSBuild/Microsoft.Cpp/v4.0/V120/Microsoft.Cpp.targets

    
    ...
        
           
        
    

    But looks like the INCLUDE and LIB appended behind additional include/lib directories specified in project properties.

提交回复
热议问题