Header file not found in Xcode project #2175
Unanswered
erikmartinessanches
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
src/main.cpp with "file not found" issue:
Background
I’m using vcpkg to install, say spdlog. I've put vcpkg as a submodule into
vendor/packages
usinggit submodule add -f https://github.com/Microsoft/vcpkg.git ./vendor/packages
. Next, I bootstrap vcpkg,./vendor/packages/bootstrap-vcpkg.sh
. Now I'm able to add spdlog as a dependency by editing vcpkg.json. I then install the dependencies./vendor/packages/vcpkg install --x-install-root=vendor/vcpkg-installed
. Finally, I make an xcode project./vendor/bin/premake/premake5 xcode4
.premake5.lua:
Curiously, I was able to generate a xcode project (without issues) with
cmake
by making a CMakeLists.txt:Then, after installing dependencies with vcpkg, doing
./vendor/packages/vcpkg integrate install
and thencmake -G Xcode -S . -B build -DCMAKE_TOOLCHAIN_FILE=/Users/erik/Dev/Projects/Vulkan2/vendor/packages/scripts/buildsystems/vcpkg.cmake
, as vcpkg recommended doing for cmake projects.Conclusion
So I'm looking to use premake5 to get a similarly working project as I had with cmake. Can premake5 generate projects without CMakeLists.txt? It would be great if I only had to list the dependencies in
links{}
and in vcpkg.json.Is there an issue with my
premake5.lua
? Note that I havelibdirs
first appearing at the various configurations. Is that a problem for thelinks{spdlog}
step?Is there an equivalent way of specifying toolchain file with premake5, or does toolchain file not apply at all with premake5?
Beta Was this translation helpful? Give feedback.
All reactions