How to make ExternalProject_Add default build not invoke install

118 Views Asked by At

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.

0

There are 0 best solutions below