compilation of VTK6.1 with Qt5-enabled - Policy CMP0040 is not set....

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

compilation of VTK6.1 with Qt5-enabled - Policy CMP0040 is not set....

Sam Raby
I am compiling VTK 6.1 from [1] with Qt enabled (Qt 5.3.2 from [2]) using cmake 3.0.2 from [3]. My OS is Ubuntu 12.04.

I am running the following command [4] for ccmake: 
cd /path/to/VTK-Release-build
ccmake -DVTK_QT_VERSION:STRING=5 \
      -DQT_QMAKE_EXECUTABLE:PATH=/path/to/qt5.2.1-install/5.2.1/gcc_64/bin/qmake \
      -DVTK_Group_Qt:BOOL=ON \
      -DCMAKE_PREFIX_PATH:PATH=/path/to/qt.5.2.1-install/5.2.1/gcc_64/lib/cmake  \
      -DBUILD_SHARED_LIBS:BOOL=ON
      /path/to/VTK

but I'm getting the following error:

(ADD_CUSTOM_COMMAND):
Policy CMP0040 is not set: The target in the TARGET signature of
add_custom_command() must exist.  Run "cmake --help-policy CMP0040" for policy details.  Use the cmake_policy command to set the policy and
suppress this warning.

The target name
"/home/torabi/local2/VTK/VTK-6.1.0-build/ThirdParty/hdf5/vtkhdf5/H5Edefin.h"
is unknown in this context.
This warning is for project developers.  Use -Wno-dev to suppress it.

Would you please hint me how to tackle this error?

Thanks



_______________________________________________
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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: compilation of VTK6.1 with Qt5-enabled - Policy CMP0040 is not set....

Gib Bogle
They look to me like warnings, not errors.  Is the build successful?

Gib

From: vtkusers [[hidden email]] on behalf of Sam Raby [[hidden email]]
Sent: Saturday, 1 November 2014 6:32 p.m.
To: [hidden email]
Subject: [vtkusers] compilation of VTK6.1 with Qt5-enabled - Policy CMP0040 is not set....

I am compiling VTK 6.1 from [1] with Qt enabled (Qt 5.3.2 from [2]) using cmake 3.0.2 from [3]. My OS is Ubuntu 12.04.

I am running the following command [4] for ccmake: 
cd /path/to/VTK-Release-build
ccmake -DVTK_QT_VERSION:STRING=5 \
      -DQT_QMAKE_EXECUTABLE:PATH=/path/to/qt5.2.1-install/5.2.1/gcc_64/bin/qmake \
      -DVTK_Group_Qt:BOOL=ON \
      -DCMAKE_PREFIX_PATH:PATH=/path/to/qt.5.2.1-install/5.2.1/gcc_64/lib/cmake  \
      -DBUILD_SHARED_LIBS:BOOL=ON
      /path/to/VTK

but I'm getting the following error:

(ADD_CUSTOM_COMMAND):
Policy CMP0040 is not set: The target in the TARGET signature of
add_custom_command() must exist.  Run "cmake --help-policy CMP0040" for policy details.  Use the cmake_policy command to set the policy and
suppress this warning.

The target name
"/home/torabi/local2/VTK/VTK-6.1.0-build/ThirdParty/hdf5/vtkhdf5/H5Edefin.h"
is unknown in this context.
This warning is for project developers.  Use -Wno-dev to suppress it.

Would you please hint me how to tackle this error?

Thanks



_______________________________________________
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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: compilation of VTK6.1 with Qt5-enabled - Policy CMP0040 is not set....

David E DeMarle
I think the means that that there is a new behavior in cmake 3.0.2 which the older vtk 6.2 release code isn't entirely happy with.

Besides Gib's point, adding a line like the following to the top level CMakeLists.txt should address the warning. 

if(POLICY CMP0040)
  cmake_policy(SET CMP0040 OLD)
endif()

Updating the CMake script inside VTK's hdf5 to have an existing target is a better fix.


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Sat, Nov 1, 2014 at 2:15 AM, Gib Bogle <[hidden email]> wrote:
They look to me like warnings, not errors.  Is the build successful?

Gib

From: vtkusers [[hidden email]] on behalf of Sam Raby [[hidden email]]
Sent: Saturday, 1 November 2014 6:32 p.m.
To: [hidden email]
Subject: [vtkusers] compilation of VTK6.1 with Qt5-enabled - Policy CMP0040 is not set....

I am compiling VTK 6.1 from [1] with Qt enabled (Qt 5.3.2 from [2]) using cmake 3.0.2 from [3]. My OS is Ubuntu 12.04.

I am running the following command [4] for ccmake: 
cd /path/to/VTK-Release-build
ccmake -DVTK_QT_VERSION:STRING=5 \
      -DQT_QMAKE_EXECUTABLE:PATH=/path/to/qt5.2.1-install/5.2.1/gcc_64/bin/qmake \
      -DVTK_Group_Qt:BOOL=ON \
      -DCMAKE_PREFIX_PATH:PATH=/path/to/qt.5.2.1-install/5.2.1/gcc_64/lib/cmake  \
      -DBUILD_SHARED_LIBS:BOOL=ON
      /path/to/VTK

but I'm getting the following error:

(ADD_CUSTOM_COMMAND):
Policy CMP0040 is not set: The target in the TARGET signature of
add_custom_command() must exist.  Run "cmake --help-policy CMP0040" for policy details.  Use the cmake_policy command to set the policy and
suppress this warning.

The target name
"/home/torabi/local2/VTK/VTK-6.1.0-build/ThirdParty/hdf5/vtkhdf5/H5Edefin.h"
is unknown in this context.
This warning is for project developers.  Use -Wno-dev to suppress it.

Would you please hint me how to tackle this error?

Thanks



_______________________________________________
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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers



_______________________________________________
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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: compilation of VTK6.1 with Qt5-enabled - Policy CMP0040 is not set....

Sam Raby
In reply to this post by Gib Bogle
Thanks Gib. Yes, the build is successful.

-S

On Sat, Nov 1, 2014 at 1:15 AM, Gib Bogle <[hidden email]> wrote:
They look to me like warnings, not errors.  Is the build successful?

Gib

From: vtkusers [[hidden email]] on behalf of Sam Raby [[hidden email]]
Sent: Saturday, 1 November 2014 6:32 p.m.
To: [hidden email]
Subject: [vtkusers] compilation of VTK6.1 with Qt5-enabled - Policy CMP0040 is not set....

I am compiling VTK 6.1 from [1] with Qt enabled (Qt 5.3.2 from [2]) using cmake 3.0.2 from [3]. My OS is Ubuntu 12.04.

I am running the following command [4] for ccmake: 
cd /path/to/VTK-Release-build
ccmake -DVTK_QT_VERSION:STRING=5 \
      -DQT_QMAKE_EXECUTABLE:PATH=/path/to/qt5.2.1-install/5.2.1/gcc_64/bin/qmake \
      -DVTK_Group_Qt:BOOL=ON \
      -DCMAKE_PREFIX_PATH:PATH=/path/to/qt.5.2.1-install/5.2.1/gcc_64/lib/cmake  \
      -DBUILD_SHARED_LIBS:BOOL=ON
      /path/to/VTK

but I'm getting the following error:

(ADD_CUSTOM_COMMAND):
Policy CMP0040 is not set: The target in the TARGET signature of
add_custom_command() must exist.  Run "cmake --help-policy CMP0040" for policy details.  Use the cmake_policy command to set the policy and
suppress this warning.

The target name
"/home/torabi/local2/VTK/VTK-6.1.0-build/ThirdParty/hdf5/vtkhdf5/H5Edefin.h"
is unknown in this context.
This warning is for project developers.  Use -Wno-dev to suppress it.

Would you please hint me how to tackle this error?

Thanks




_______________________________________________
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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers