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

Missing file error on 'make install' #260

Open
sdegrande opened this issue Sep 19, 2024 · 0 comments
Open

Missing file error on 'make install' #260

sdegrande opened this issue Sep 19, 2024 · 0 comments

Comments

@sdegrande
Copy link

I use internal deps, and make install fails due to some missing files in thirdparty (with version 1.3.2, dependencies are no more in submodules).

I had to apply the following patch.

I'm not used enough to cmake to know if there are variables that could be used to get the src dir of the fetched dependencies.

diff --git a/thirdparty/internal_deps.cmake b/thirdparty/internal_deps.cmake
index 44f0446..0976c8c 100644
--- a/thirdparty/internal_deps.cmake
+++ b/thirdparty/internal_deps.cmake
@@ -75,10 +75,10 @@ if (JINJA2CPP_BUILD_TESTS)
 endif()

 install (FILES
-        thirdparty/nonstd/expected-lite/include/nonstd/expected.hpp
-        thirdparty/nonstd/variant-lite/include/nonstd/variant.hpp
-        thirdparty/nonstd/optional-lite/include/nonstd/optional.hpp
-        thirdparty/nonstd/string-view-lite/include/nonstd/string_view.hpp
+       ${FETCHCONTENT_BASE_DIR}/expected-lite-src/include/nonstd/expected.hpp
+       ${FETCHCONTENT_BASE_DIR}/variant-lite-src/include/nonstd/variant.hpp
+       ${FETCHCONTENT_BASE_DIR}/optional-lite-src/include/nonstd/optional.hpp
+       ${FETCHCONTENT_BASE_DIR}/string-view-lite-src/include/nonstd/string_view.hpp
     DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/nonstd)

 install (TARGETS RapidJson
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