jrl-umi3218 / jrl-cmakemodules

CMake utility toolbox
https://jrl-cmakemodules.readthedocs.io/en/master/
Other
56 stars 46 forks source link

Use ${CMAKE_COMMAND} instead of @CMAKE_COMMAND@ in generated scripts #672

Closed gergondet closed 4 months ago

gergondet commented 4 months ago

I encountered some issues on a computer where CMake is installed with a space inserted. using @CMAKE_COMMAND@ instead of "@CMAKE_COMMAND@" would create some problems. However, there's not much point in using @CMAKE_COMMAND@ in the first place so I have replaced all usage with ${CMAKE_COMMAND} which is correctly handled in the execute_process calls