cmake - Prevent make install from propagating to external projects -


let's have 3 projects. a, b, , c, executable , b , c static libraries required a. depends on b. , b depends on c.

i have 3 cmakelists.txt, 1 each project.

in a, build b using externalproject_add , add_dependencies. relies on b using install step put headers , library file in known places can find headers compilation , link.

b uses externalproject_add , add_dependencies build c. again, install step important here because allows both b , find header files.

i can build no problem. do, want able install executable. consists of bundling data via copy copying executable known place. executable requires data in particular location relative it.

so install of executable looks this:

install(targets ${project_name} runtime destination bin library destination lib archive destination lib) install(directory ${cmake_source_dir}/resources/         destination ${project_name}) 

when run make install notice go down chain, checks if targets built , installs them. make sense happens. however, isn't ideally want (the copying can take while, i'd prefer "re-install" of b , c not happen.

is there viable approach take can either make make install not go through chain, or there invocation can use this?


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -