How to change output directory for a target

前端 未结 7 1826
执笔经年
执笔经年 2020-12-13 12:12

I am using a workspace where I have a main app project and then a static library project which is used by the main app. I want static library project to spit out libX.a into

7条回答
  •  没有蜡笔的小新
    2020-12-13 13:06

    1. Go to File -> Project Settings.

    2. Click the Advanced button under Derived Data Location. Under build location select custom and choose your output directory. This will change the variable $(BUILD_DIR) to whatever you set in that field.

    3. Click done and go to your target settings. Under Build Location you can now specify where the targets are output based on that $(BUILD_DIR) macro.

提交回复
热议问题