For my CPack configuration, I have a step where I do -
set(CPACK_INSTALL_SCRIPTS ${CMAKE_SOURCE_DIR}/cmake/CPackfoo.cmake)
Inside CPackfoo.cmake , I am using a command - execute_process(COMMAND textutil -convert html README.md -output "${CMAKE_BINARY_DIR}/README.html")
But it seems like ${CMAKE_BINARY_DIR} is not recognized here and textutil tries to write README.html to / . Is there an obvious way to fix this that I am missing?