Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8704

Tidy up CMake warnings on Windows builds

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.0.0, 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 2
    • Storage - Ra 2022-01-24

      When using newer versions of CMake & VS MSBuild, we get a significant number of warnings at both the CMake configuration stages and during an MSBuild compilation:

      ...
      CMAKE_EXE_LINKER_FLAGS_NONE
      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_EXE_LINKER_FLAGS_NONE
      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_EXE_LINKER_FLAGS_NONE
      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_EXE_LINKER_FLAGS_NONE
      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_EXE_LINKER_FLAGS_NONE
      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_EXE_LINKER_FLAGS_NONE
      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_EXE_LINKER_FLAGS_NONE
      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_EXE_LINKER_FLAGS_NONE
      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_EXE_LINKER_FLAGS_NONE
      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_EXE_LINKER_FLAGS_NONE
      CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
      Missing variable is:
      CMAKE_EXE_LINKER_FLAGS_NONE
      ...
      ... 
      [C:\Users\Administrator\Documents\wiredtiger\src\include\btree_inline.h(1181,62): warning C4090: 'function': different 'const' qualifiers [C:\Users\Adminis trator\Documents\wiredtiger\build\wt_objs.vcxproj] 
      C:\Users\Administrator\Documents\wiredtiger\src\include\btree_inline.h(1191,66): warning C4090: 'function': different 'const' qualifiers [C:\Users\Adminis trator\Documents\wiredtiger\build\wt_objs.vcxproj] 
      C:\Users\Administrator\Documents\wiredtiger\src\include\btree_inline.h(1245,66): warning C4090: 'function': different 'const' qualifiers [C:\Users\Adminis trator\Documents\wiredtiger\build\wt_objs.vcxproj] 
      C:\Users\Administrator\Documents\wiredtiger\src\include\cursor_inline.h(478,62): warning C4090: 'function': different 'const' qualifiers [C:\Users\Adminis trator\Documents\wiredtiger\build\wt_objs.vcxproj] 
      C:\Users\Administrator\Documents\wiredtiger\src\include\btree_inline.h(1181,62): warning C4090: 'function': different 'const' qualifiers [C:\Users\Adminis trator\Documents\wiredtiger\build\wt_objs.vcxproj] 
      ...
          1475 Warning(s)
          0 Error(s)
      Time Elapsed 00:01:43.35
      

      Whilst none of which break the build, the warnings can be jarring for a first time builder.

      Definition of Done:

      • Clean up warnings

            Assignee:
            alison.felizzi@mongodb.com Alison Felizzi (Inactive)
            Reporter:
            alison.felizzi@mongodb.com Alison Felizzi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: