Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CMake to 3.9 #1159

Merged
merged 22 commits into from
Oct 23, 2024
Merged

Update CMake to 3.9 #1159

merged 22 commits into from
Oct 23, 2024

Conversation

waahm7
Copy link
Contributor

@waahm7 waahm7 commented Oct 17, 2024

Issue #, if available:

Description of changes:

  • set visibility always to hidden
  • Update CMake to 3.9

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.62%. Comparing base (faa6c0f) to head (21880c4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1159      +/-   ##
==========================================
- Coverage   83.84%   83.62%   -0.23%     
==========================================
  Files          57       57              
  Lines        5992     5947      -45     
==========================================
- Hits         5024     4973      -51     
- Misses        968      974       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@waahm7 waahm7 changed the title WIP | Update CMake Update CMake Oct 18, 2024
@waahm7 waahm7 changed the title Update CMake Update CMake to 3.9 Oct 18, 2024
@@ -231,7 +231,6 @@ function(aws_set_common_properties target)

# try to check whether compiler supports LTO/IPO
if (POLICY CMP0069)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we're not trying to rewrite the world, but since this touches a POLICY ... we can replace this if (POLICY CMP0069) block with simpler code

        # check whether compiler supports LTO/IPO
        include(CheckIPOSupported)
        check_ipo_supported(RESULT ipo_supported)
        if (ipo_supported)
            message(STATUS "Enabling IPO/LTO for Release builds")
        else()
            message(STATUS "AWS_ENABLE_LTO is enabled, but cmake/compiler does not support it, disabling")
            set(_ENABLE_LTO_EXPR OFF)
        endif()

see: https://cmake.org/cmake/help/v3.9/policy/CMP0069.html

@@ -1,17 +1,13 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.9)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comment about WHY we're picking CMake 3.9. Because it's the latest supported version in ... RHEL5? Amazon Linux 1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants