Skip to content

Help using CMake on Windows #5670

Answered by Gold856
Gold856 asked this question in Q&A
Sep 19, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I think I fixed it. When I disabled Java, it worked fine, and so I compared the install command in the Java section to the one outside of it. The Java one currently is install(FILES wpilibNewCommands-config.cmake DESTINATION ${wpilibNewCommands_config_dir}) while the other one is install(FILES ${WPILIB_BINARY_DIR}/wpilibNewCommands-config.cmake DESTINATION ${wpilibNewCommands_config_dir}). I copied the non-Java install command and replaced the Java one, and it built from scratch with no problems. Looks like we really were telling CMake to use the source directory instead of the build directory. It should now refer to the build directory.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gold856
Comment options

Answer selected by Gold856
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants