[ITK] Module_ITKLevelSetsv4Visualization warning

Kenji Tsumura kenji.tsumura at neosoftmedical.com
Mon Oct 10 18:06:15 EDT 2016


Hi Francois,

I tried but didn’t work. I got the following error.

CMake Warning (dev) in Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:
  Syntax Warning in cmake code at

    D:/workspace_itk_org/InsightToolkit-4.10.1/Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:98:23

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:
  Syntax Warning in cmake code at

    D:/workspace_itk_org/InsightToolkit-4.10.1/Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:98:25

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:
  Syntax Warning in cmake code at

    D:/workspace_itk_org/InsightToolkit-4.10.1/Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:99:11

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:
  Syntax Warning in cmake code at

    D:/workspace_itk_org/InsightToolkit-4.10.1/Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:99:17

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:
  Syntax Warning in cmake code at

    D:/workspace_itk_org/InsightToolkit-4.10.1/Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:100:11

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:
  Syntax Warning in cmake code at

    D:/workspace_itk_org/InsightToolkit-4.10.1/Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt:100:57

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMake/ITKModuleAPI.cmake:54 (include):
  Syntax Warning in cmake code at

    D:/workspace_itk_org/InsightToolkit-4.10.1-bin/lib/cmake/ITK-4.10/Modules/ITKLevelSetsv4Visualization.cmake:41:91

  Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
  CMake/ITKModuleAPI.cmake:26 (itk_module_load)
  CMake/ITKModuleAPI.cmake:84 (_itk_module_config_recurse)
  D:/workspace_itk_org/InsightToolkit-4.10.1-bin/ITKConfig.cmake:68 (itk_module_config)
  Examples/CMakeLists.txt:5 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.


So I added spaces like this.

string(REGEX REPLACE " \" "
         " \\\\\" " ITKLevelSetsv4Visualization_VTK_DEFINITIONS
         " ${ITKLevelSetsv4Visualization_VTK_DEFINITIONS} ")


But the original warning persists.

CMake Warning (dev) at CMake/ITKModuleAPI.cmake:54 (include):
  Syntax Warning in cmake code at

    D:/workspace_itk_org/InsightToolkit-4.10.1-bin/lib/cmake/ITK-4.10/Modules/ITKLevelSetsv4Visualization.cmake:41:91

  Argument not separated from preceding token by whitespace.
Call Stack (most recent call first):
  CMake/ITKModuleAPI.cmake:26 (itk_module_load)
  CMake/ITKModuleAPI.cmake:84 (_itk_module_config_recurse)
  D:/workspace_itk_org/InsightToolkit-4.10.1-bin/ITKConfig.cmake:68 (itk_module_config)
  Examples/CMakeLists.txt:5 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.


Thank you,

Kenji
From: Francois Budin [mailto:francois.budin at kitware.com]
Sent: Monday, October 10, 2016 1:39 PM
To: Kenji Tsumura
Cc: Matt McCormick; community at itk.org
Subject: Re: [ITK] Module_ITKLevelSetsv4Visualization warning

Hello Kenji,
Can you try to add this line before Line 98?
string(REGEX REPLACE "\""
         "\\\\\"" ITKLevelSetsv4Visualization_VTK_DEFINITIONS
         "${ITKLevelSetsv4Visualization_VTK_DEFINITIONS}")
The idea is to escape the quote characters that are added in the variable ITKLevelSetsv4Visualization_VTK_DEFINITIONS.
The result should be:
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS " vtkRenderingCore_INCLUDE=\"D:/workspace_itk_org/InsightToolkit-4.10.1-bin/CMakeFiles/vtkRenderingCore_AUTOINIT_vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingOpenGL2.h\" ")

On Mon, Oct 10, 2016 at 2:06 PM, Kenji Tsumura <kenji.tsumura at neosoftmedical.com<mailto:kenji.tsumura at neosoftmedical.com>> wrote:
Hi Francois,

The problem still persists.
I changed the CMakeList.txt like this: spaces before and after ${ITKLevelSetsv4Visualization_VTK_DEFINITIONS}.

Line 98:
  set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS \" ${ITKLevelSetsv4Visualization_VTK_DEFINITIONS} \")
Line 130:
  set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS \" ${ITKLevelSetsv4Visualization_VTK_DEFINITIONS} \")

In the generated file, there are spaces after the first double quotation and before the last double quotation.
I think spaces are required for the double quotations of the path.

  set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS " vtkRenderingCore_INCLUDE="D:/workspace_itk_org/InsightToolkit-4.10.1-bin/CMakeFiles/vtkRenderingCore_AUTOINIT_vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingOpenGL2.h" ")

Thank you,

Kenji
From: Francois Budin [mailto:francois.budin at kitware.com<mailto:francois.budin at kitware.com>]
Sent: Monday, October 10, 2016 12:46 PM
To: Kenji Tsumura
Cc: Matt McCormick; community at itk.org<mailto:community at itk.org>

Subject: Re: [ITK] Module_ITKLevelSetsv4Visualization warning

Hello Kenji,
Could you add these extra space in ITK/Modules/Segmentation/LevelSetsv4Visualization/CMakeLists.txt line 98 and line 130 and see if that solves your issue?
Thanks,
Francois

On Mon, Oct 10, 2016 at 1:35 PM, Kenji Tsumura <kenji.tsumura at neosoftmedical.com<mailto:kenji.tsumura at neosoftmedical.com>> wrote:
Hi Matt,

                                                                                                                                                                        |
                                                                                                                                                                        V
    set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "vtkRenderingCore_INCLUDE="D:/workspace_itk/InsightToolkit-4.10.1-bin-2/CMakeFiles/vtkRenderingCore_AUTOINIT_vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingOpenGL2.h"")

I think adding spaces after starting double quotation and before ending double quotation solves the warning.
But the problem is that this file ITKLvelSetsv4Visualization.cmake is auto-generated...

Thank you,

Kenji

-----Original Message-----
From: Matt McCormick [mailto:matt.mccormick at kitware.com<mailto:matt.mccormick at kitware.com>]
Sent: Monday, October 10, 2016 11:53 AM
To: Kenji Tsumura
Cc: Francois Budin; community at itk.org<mailto:community at itk.org>
Subject: Re: [ITK] Module_ITKLevelSetsv4Visualization warning

Hi Kenji,

Could you please share the content of

  Syntax Warning in cmake code at

    D:/workspace_itk/InsightToolkit-4.10.1-java-bin/lib/cmake/ITK-4.10/Modules/ITKLevelSetsv4Visualization.cmake:41:91

?

Thanks,
Matt

On Mon, Oct 10, 2016 at 11:55 AM, Kenji Tsumura <kenji.tsumura at neosoftmedical.com<mailto:kenji.tsumura at neosoftmedical.com>> wrote:
> Hi Francois,
>
>
>
> I tried again and saw the same problem.
>
> I turned on only BUILD_EXAMPLES and Module_ITKLevelSetsv4Visualization.
>
>
>
> I forgot to mention that I use Visual Studio 2013.
>
>
>
> Thank you,
>
>
>
> Kenji
>
>
>
> From: Francois Budin [mailto:francois.budin at kitware.com<mailto:francois.budin at kitware.com>]
> Sent: Monday, October 10, 2016 10:38 AM
> To: Kenji Tsumura
> Cc: community at itk.org<mailto:community at itk.org>
> Subject: Re: [ITK] Module_ITKLevelSetsv4Visualization warning
>
>
>
> Hello Kenji,
>
> I do not seem to be able to reproduce your error on Ubuntu 16.04:
>
> cmake 3.1.1
>
> ITK 4.10.1
>
> VTK 7.0.0
>
> Did you change any of the default values in CMake beside
> BUILD_EXAMPLES and Module_ITKLevelSetsv4Visualization?
>
> Francois
>
>
>
> On Mon, Oct 10, 2016 at 10:20 AM, Kenji Tsumura
> <kenji.tsumura at neosoftmedical.com<mailto:kenji.tsumura at neosoftmedical.com>> wrote:
>
> Hi,
>
>
>
> When I tried to configure ITK, I had the following warning.
>
> I turned on Module_ITKLevelSetsv4Visualization and BUILD_EXAMPLES in CMake.
>
> Apparently, due to this warning, I can't use classes in the
> LevelSetV4Visualization module,
>
> when I tried to build an example downloaded from the ITK website.
>
> (https://itk.org/ITKExamples/src/Segmentation/LevelSetsv4Visualization
> /VisualizeEvolvingDense2DLevelSetZeroSet/Documentation.html)
>
>
>
> I can modify the cmake file directly, but "Generate" action erases the
> changes I made.
>
> So I am not sure what to do.
>
>
>
>
>
> CMake Warning (dev) at CMake/ITKModuleAPI.cmake:54 (include):
>
>   Syntax Warning in cmake code at
>
>
>
>
> D:/workspace_itk/InsightToolkit-4.10.1-java-bin/lib/cmake/ITK-4.10/Mod
> ules/ITKLevelSetsv4Visualization.cmake:41:91
>
>
>
>   Argument not separated from preceding token by whitespace.
>
> Call Stack (most recent call first):
>
>   CMake/ITKModuleAPI.cmake:26 (itk_module_load)
>
>   CMake/ITKModuleAPI.cmake:84 (_itk_module_config_recurse)
>
>   D:/workspace_itk/InsightToolkit-4.10.1-java-bin/ITKConfig.cmake:68
> (itk_module_config)
>
>   Examples/CMakeLists.txt:5 (find_package)
>
> This warning is for project developers.  Use -Wno-dev to suppress it.
>
>
>
>
>
> My environment is ...
>
> OS: Windows 7
>
> CMake 3.1.1
>
> ITK 4.10.1
>
> VTK 7.0.0
>
>
>
> I would appreciate any advice.
>
> Thank you in advance!
>
>
>
> Kenji
>
> Disclaimer: The information contained in this communication may be
> confidential, is intended only for the use of the recipient(s) named
> above, and may be legally privileged. If the reader of this message is
> not the intended recipient, you are hereby notified that any
> dissemination, distribution, or copying of this communication, or any
> of its contents, is strictly prohibited. If you have received this
> communication in error, please return it to the sender immediately and
> delete the original message and any copy of it from your computer
> system. If you have any questions concerning this message, please contact the sender.
>
>
> _______________________________________________
> Community mailing list
> Community at itk.org<mailto:Community at itk.org>
> http://public.kitware.com/mailman/listinfo/community
>
>
>
> Disclaimer: The information contained in this communication may be
> confidential, is intended only for the use of the recipient(s) named
> above, and may be legally privileged. If the reader of this message is
> not the intended recipient, you are hereby notified that any
> dissemination, distribution, or copying of this communication, or any
> of its contents, is strictly prohibited. If you have received this
> communication in error, please return it to the sender immediately and
> delete the original message and any copy of it from your computer
> system. If you have any questions concerning this message, please contact the sender.
>
> _______________________________________________
> Community mailing list
> Community at itk.org<mailto:Community at itk.org>
> http://public.kitware.com/mailman/listinfo/community
>
Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.

Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.

Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20161010/2cf0b3bf/attachment-0001.html>


More information about the Community mailing list