<div dir="ltr">I am having a bit of trouble getting this sorted out.<div><br></div><div>I set</div><div><div>set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)<br></div></div><div><br></div><div>in one of my cmakelists.txt file and it works almost as expected. If I use the terminal to build everything goes where it needs to and then I can reference the relative location of my files and folders from my c code BUT</div><div><br></div><div>if I use xcode to build the same program, xcode seems to append a Debug or Release to the end of my path breaking all my c code.</div><div><br></div><div>sample output below</div><div><div>//    terminal</div><div>//    /Users/user/FOLDER/project/build/bin/</div><div>//    /Users/user/FOLDER/project/build/bin/resources/</div></div><div><br></div><div><div>//    xcode</div><div>//    /Users/user/FOLDER/project/build/bin/Debug/</div><div>//    /Users/user/FOLDER/project/build/bin/Debug/resources/</div><div><br></div><div>//   clion </div><div>//    /ad053ed7/ad053ed7/Debug/bin/</div><div>//    /ad053ed7/ad053ed7/Debug/bin/resources/</div></div><div><br></div><div>As you can see I am getting three different outputs based on the same cmake file using 3 ways of building.</div><div><br></div><div>is there a way to make these filenames consistent so that I when I try to load some resources my code doesn't break?</div></div>