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

Issue with generated cmake module files? #2306

Open
imrichardcole opened this issue Sep 18, 2024 · 0 comments
Open

Issue with generated cmake module files? #2306

imrichardcole opened this issue Sep 18, 2024 · 0 comments

Comments

@imrichardcole
Copy link

From a clean build/install:

cmake -S . -B build -DCMAKE_INSTALL_PREFIX=install
cmake --build build --config Release --target install

The generated cmake files:

C:/sandbox/work/oss/rapidjson/install/cmake/RapidJSON-targets.cmake
C:/sandbox/work/oss/rapidjson/install/cmake/RapidJSONConfig.cmake
C:/sandbox/work/oss/rapidjson/install/cmake/RapidJSONConfigVersion.cmake

All contain hardcoded paths based on the original build location. This means that I don't think I can easily share the builds to others.

################################################################################
# RapidJSON source dir
set( RapidJSON_SOURCE_DIR "C:/sandbox/work/oss/rapidjson")

################################################################################
# RapidJSON build dir
set( RapidJSON_DIR "C:/sandbox/work/oss/rapidjson/build")

Perhaps I'm doing something wrong?

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