[ITK Community] [Insight-users] set_target_properties called with incorrect number of arguments

Matt McCormick matt.mccormick at kitware.com
Tue Feb 11 15:33:48 EST 2014


Hi Ujjwal,

Nothing is jumping out.  Was the same version of CMake used for both builds?

Thanks,
Matt

On Tue, Feb 11, 2014 at 2:04 PM, UJJWAL aryan <meetukme at gmail.com> wrote:
> The contents of VTKTargets.cmake fron lines 839-855 are
>
> SET_TARGET_PROPERTIES(vtksys PROPERTIES
>   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG;RELEASE "dl;dl"
>   IMPORTED_LOCATION_DEBUG;RELEASE
> "/usr/local/VTK-6.1.0/build/lib/libvtksys-6.1.so.1"
>   IMPORTED_SONAME_DEBUG;RELEASE "libvtksys-6.1.so.1"
>   )
>
> # Make sure the targets which have been exported in some other
> # export set exist.
>
> # Import target "vtkCommonCore" for configuration "Debug;release"
> SET_PROPERTY(TARGET vtkCommonCore APPEND PROPERTY IMPORTED_CONFIGURATIONS
> DEBUG;RELEASE)
> SET_TARGET_PROPERTIES(vtkCommonCore PROPERTIES
>   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBUG;RELEASE "vtksys"
>   IMPORTED_LOCATION_DEBUG;RELEASE
> "/usr/local/VTK-6.1.0/build/lib/libvtkCommonCore-6.1.so.1"
>   IMPORTED_SONAME_DEBUG;RELEASE "libvtkCommonCore-6.1.so.1"
>   )
>
>
>
> On Tue, Feb 11, 2014 at 9:10 PM, Matt McCormick <matt.mccormick at kitware.com>
> wrote:
>>
>> Hi Ujjwal,
>>
>> What is the content of
>>
>>    /usr/local/VTK-6.1.0/build/VTKTargets.cmake:839
>>
>> and
>>
>>   /usr/local/VTK-6.1.0/build/VTKTargets.cmake:850
>>
>> ?
>> (note that per convention, the number following the colon is the line
>> number).
>>
>> Thanks,
>> Matt
>>
>> On Tue, Feb 11, 2014 at 4:08 AM, UJJWAL aryan <meetukme at gmail.com> wrote:
>> > Hi,
>> >
>> > I installed VTK-6.1.0 in /usr/local/VTK-6.1.0/build
>> >
>> > During installation of ITK-4.5, I set VTK_DIR to that path.
>> >
>> > However, now it is giving me a series of errors of the type that appears
>> > in
>> > the subject.
>> >
>> > I have kept kept ITKVTKglue as on and BridgeOpencv also as on .
>> >
>> >
>> > One part of the error is
>> >
>> > ATTENTION: You have enabled the use of fftw, this library is distributed
>> > under a GPL license. By enabling this option, the binary of the ITK
>> >  libraries that you are going to build will be covered by a GPL license,
>> > and
>> > so it will be any executable that you link against these libraries.
>> >
>> >  CMake Error at /usr/local/VTK-6.1.0/build/VTKTargets.cmake:839
>> > (SET_TARGET_PROPERTIES):
>> >    set_target_properties called with incorrect number of arguments.
>> >  Call Stack (most recent call first):
>> >    /usr/local/VTK-6.1.0/build/VTKConfig.cmake:44 (include)
>> >    /usr/share/cmake-2.8/Modules/FindVTK.cmake:73 (find_package)
>> >    Modules/Bridge/VtkGlue/itk-module-init.cmake:4 (find_package)
>> >    CMake/ITKModuleEnablement.cmake:309 (include)
>> >    CMakeLists.txt:283 (include)
>> >
>> >
>> >
>> >  CMake Error at /usr/local/VTK-6.1.0/build/VTKTargets.cmake:850
>> > (SET_TARGET_PROPERTIES):
>> >    set_target_properties called with incorrect number of arguments.
>> >  Call Stack (most recent call first):
>> >    /usr/local/VTK-6.1.0/build/VTKConfig.cmake:44 (include)
>> >    /usr/share/cmake-2.8/Modules/FindVTK.cmake:73 (find_package)
>> >    Modules/Bridge/VtkGlue/itk-module-init.cmake:4 (find_package)
>> >    CMake/ITKModuleEnablement.cmake:309 (include)
>> >    CMakeLists.txt:283 (include)
>> >
>> >
>> >
>> >
>> > --
>> > Ujjwal
>> >
>> >
>> > _____________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Kitware offers ITK Training Courses, for more information visit:
>> > http://www.kitware.com/products/protraining.php
>> >
>> > Please keep messages on-topic and check the ITK FAQ at:
>> > http://www.itk.org/Wiki/ITK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.itk.org/mailman/listinfo/insight-users
>> >
>> > _______________________________________________
>> > Community mailing list
>> > Community at itk.org
>> > http://public.kitware.com/cgi-bin/mailman/listinfo/community
>> >
>
>
>
>
> --
> Ujjwal
> IIIT Hyderabad
> Mob - 8142265628
> ujjwal at research.iiit.ac.in
>
>
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users



More information about the Community mailing list