简体   繁体   中英

CMake Xcode using wrong files in Issue Navigator

I generate an Xcode project from CMake that builds a static library and test executable.

After the library is built, there is a file copy operation that moves the headers to a central directory (an include folder next to the built library).

This directory is not listed in the header search paths for either project (I have verified this inside the Xcode project and CMakeLists files).

When I am working in the generated Xcode project, the Issue Navigator will open the files in the central directory instead of the files used to build the project.

Can anyone tell me why this happens and how I can fix it?

Thanks for your help.

Use a separate build directory. Create a new directory. Navigate to that in terminal and say :

cmake -G Xcode <path_to_source>

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