MantisBT - Open CASCADE
View Issue Details
0029542Open CASCADE[OCCT] OCCT:Codingpublic2018-03-04 10:212018-06-29 21:21
nds 
bugmaster 
normalminor 
closedfixed 
 
[OCCT] 7.3.0[OCCT] 7.3.0 
Not needed
0029542: Coding - CMake compiler warnings in Inspector
Using CMake version after 3.10 leads to warning about using of Qt (moc files description).
Set Build_Inspector to ON
Start CMake (version after 3.10)
Configure
Generate
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.
No tags attached.
related to 0029310closed bugmaster Coding - multiple compiler warnings in Inspectors 
Issue History
2018-03-04 10:21ndsNew Issue
2018-03-04 10:21ndsAssigned To => nds
2018-03-04 10:22ndsRelationship addedrelated to 0029310
2018-03-04 10:33gitNote Added: 0074233
2018-03-05 15:42ndsNote Added: 0074255
2018-03-05 15:42ndsStatusnew => resolved
2018-03-06 14:03ndsNote Added: 0074269
2018-03-06 14:03ndsAssigned Tonds => apn
2018-03-06 18:25apnTest case number => Not needed
2018-03-06 18:25apnNote Added: 0074323
2018-03-06 18:25apnAssigned Toapn => bugmaster
2018-03-06 18:25apnStatusresolved => reviewed
2018-03-06 18:25apnStatusreviewed => tested
2018-03-18 13:21bugmasterChangeset attached => occt master 410dd2c9
2018-03-18 13:21bugmasterStatustested => verified
2018-03-18 13:21bugmasterResolutionopen => fixed
2018-03-19 10:05gitNote Added: 0074612
2018-06-29 21:16aivFixed in Version => 7.3.0
2018-06-29 21:21aivStatusverified => closed

Notes
(0074233)
git   
2018-03-04 10:33   
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.
(0074255)
nds   
2018-03-05 15:42   
http://jenkins-test-10.nnov.opencascade.com:8080/view/CR29542-master-NDS/ [^]
(0074269)
nds   
2018-03-06 14:03   
Please review modifications and build using mentioned version of CMake or later.
(0074323)
apn   
2018-03-06 18:25   
Checked with cmake 3.10.0 (no warnings after Generate).
Tested.
(0074612)
git   
2018-03-19 10:05   
Branch CR29542 has been deleted by kgv.

SHA-1: 7b8d1a2f672c206022a5a2ec9115847bfeac558f