[CMake] installing without building the whole project

Dominik Szczerba dominik at itis.ethz.ch
Mon Jun 13 05:21:11 EDT 2011


Many thanks!
Dominik

On Mon, Jun 13, 2011 at 10:57 AM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:
> On Thursday 09 June 2011, Michael Hertling wrote:
>> On 06/09/2011 03:34 PM, Dominik Szczerba wrote:
>> > Hi,
>> >
>> > I have a big project with several subfolders. In one subfolder's cmake
>> > file I have e.g.
>> >
>> > INSTALL(TARGETS test DESTINATION ${CMAKE_INSTALL_PREFIX} CONFIGURATIONS
>> > RELEASE)
>> >
>> > Now when I call "make install" on linux or build "INSTALL" project in
>> > MSVC the whole project is built prior to installation of "test". How
>> > would I force to only build "test" in this case?
>> >
>> > Many thanks for any hints,
>> > Dominik
>>
>> Since the general "install" target always depends on the general "all"
>> target,
>
>
> This dependency can be disabled by setting:
> set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE)
>
>
> You can also do "make install/fast", which skips that dependency.
> Using "make install/local" only stuff from the current directory is installed,
> but not from subdirs.
>
> Alex
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
>


More information about the CMake mailing list