View Issue Details

IDProjectCategoryView StatusLast Update
0029542Open CASCADEOCCT:Codingpublic2018-06-29 21:21
Reporternds Assigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Target Version7.3.0Fixed in Version7.3.0 
Summary0029542: Coding - CMake compiler warnings in Inspector
DescriptionUsing CMake version after 3.10 leads to warning about using of Qt (moc files description).
Steps To ReproduceSet Build_Inspector to ON
Start CMake (version after 3.10)
Configure
Generate
Additional information
and documentation updates
Warning:

CMake Warning (dev) in tools/TKShapeView/CMakeLists.txt:
  Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files.
  Run "cmake --help-policy CMP0071" for policy details. Use the cmake_policy
  command to set the policy and suppress this warning.

  For compatibility, CMake is excluding the GENERATED source file(s):

    "D:/OCCT/master_CR29310_2/build_vc14/tools/TKShapeView/qrc_ShapeView.cxx"

  from processing by AUTOMOC. If any of the files should be processed, set
  CMP0071 to NEW. If any of the files should not be processed, explicitly
  exclude them by setting the source file property SKIP_AUTOMOC:

    set_property(SOURCE file.h PROPERTY SKIP_AUTOMOC ON)

This warning is for project developers. Use -Wno-dev to suppress it.
TagsNo tags attached.
Test case numberNot needed

Relationships

related to 0029310 closedbugmaster Coding - multiple compiler warnings in Inspectors 

Activities

git

2018-03-04 10:33

administrator   ~0074233

Branch CR29542 has been created by nds.

SHA-1: 7b8d1a2f672c206022a5a2ec9115847bfeac558f


Detailed log of new commits:

Author: nds
Date: Sun Mar 4 10:33:10 2018 +0300

    0029542: Coding - CMake compiler warnings in Inspector
    
    Avoid using CMAKE_AUTOMOC, collect header files with Q_OBJECT iterating through a project files.

nds

2018-03-05 15:42

developer   ~0074255

http://jenkins-test-10.nnov.opencascade.com:8080/view/CR29542-master-NDS/

nds

2018-03-06 14:03

developer   ~0074269

Please review modifications and build using mentioned version of CMake or later.

apn

2018-03-06 18:25

administrator   ~0074323

Checked with cmake 3.10.0 (no warnings after Generate).
Tested.

git

2018-03-19 10:05

administrator   ~0074612

Branch CR29542 has been deleted by kgv.

SHA-1: 7b8d1a2f672c206022a5a2ec9115847bfeac558f

Related Changesets

occt: master 410dd2c9

2018-03-04 07:33:10

nds


Committer: bugmaster Details Diff
0029542: Coding - CMake compiler warnings in Inspector

Avoid using CMAKE_AUTOMOC, collect header files with Q_OBJECT iterating through a project files.
Affected Issues
0029542
mod - adm/cmake/occt_toolkit_tool.cmake Diff File
mod - adm/cmake/qt_macro.cmake Diff File

Issue History

Date Modified Username Field Change
2018-03-04 10:21 nds New Issue
2018-03-04 10:21 nds Assigned To => nds
2018-03-04 10:22 nds Relationship added related to 0029310
2018-03-04 10:33 git Note Added: 0074233
2018-03-05 15:42 nds Note Added: 0074255
2018-03-05 15:42 nds Status new => resolved
2018-03-06 14:03 nds Note Added: 0074269
2018-03-06 14:03 nds Assigned To nds => apn
2018-03-06 18:25 apn Test case number => Not needed
2018-03-06 18:25 apn Note Added: 0074323
2018-03-06 18:25 apn Assigned To apn => bugmaster
2018-03-06 18:25 apn Status resolved => reviewed
2018-03-06 18:25 apn Status reviewed => tested
2018-03-18 13:21 bugmaster Changeset attached => occt master 410dd2c9
2018-03-18 13:21 bugmaster Status tested => verified
2018-03-18 13:21 bugmaster Resolution open => fixed
2018-03-19 10:05 git Note Added: 0074612
2018-06-29 21:16 aiv Fixed in Version => 7.3.0
2018-06-29 21:21 aiv Status verified => closed