I am adding CMake build support to a make based project. I am using ExternalProject_Add for this. EVerything up to INSTALL_COMMAND works fine. But I want the default target (I guess all target) to not include install. Basically I want default target to only include up to build and then install to be a separate command. How can I achieve that? Leaving INSTALL_COMMAND as "" and adding a
ExternalProject_Add()
install(CODE "execute_process(\"echo Hello\")")
Didnt seem to help. The echo never ran.