Skip to content

[Bug]: set(ABSL_PROPAGATE_CXX_STD ON) breaks Windows #1432

@leissa

Description

@leissa

Describe the issue

Using ABSL_PROPAGATE_CXX_STD breaks Windows support:

CMake Error at external/abseil-cpp/CMake/AbseilDll.cmake:790 (_absl_target_compile_features_if_available):
_absl_target_compile_features_if_available Function invoked with incorrect
arguments for function named: _absl_target_compile_features_if_available
Call Stack (most recent call first):
external/abseil-cpp/absl/CMakeLists.txt:40 (absl_make_dll)

Steps to reproduce the problem

set(ABSL_PROPAGATE_CXX_STD ON)
add_subdirectory(external/abseil-cpp)

What version of Abseil are you using?

20230125.2: b971ac5

What operating system and version are you using?

Microsoft Windows Server 2022

What compiler and version are you using?

MSVC 19.34.31943.0

What build system are you using?

cmake 3.26.3

Additional context

Unfortunately, I'm running into this issue with a GitHub runner as I'm personally not using Windows.
See also:
https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md

You can also just run the runner yourself:
https://github.com/AnyDSL/thorin2/blob/version_bump/.github/workflows/windows.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions