Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include path not exposed while importing to CMake project via FetchContent #69

Open
francisco-m-almeida opened this issue Sep 3, 2024 · 0 comments

Comments

@francisco-m-almeida
Copy link

francisco-m-almeida commented Sep 3, 2024

While importing tinyply to a CMake project through FetchContent in such a way,

FetchContent_Declare(tinyply
		GIT_REPOSITORY  https://github.com/ddiakopoulos/tinyply.git
		GIT_TAG 2.3.4
)
FetchContent_MakeAvailable(tinyply)

The header tinyply.h is not found by the compiler, as if the source subdirectory was not added to include path.

The workaround I am currently using is adding the include path by hand thus:

target_include_directories(${MY_TARGET} PRIVATE "${tinyply_SOURCE_DIR}/source")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant