Skip to content

3.10.0 breaks CMake builds for CMake < 3.28 #345

@marzer

Description

@marzer

The recent release makes use of CXX_SCAN_FOR_MODULES, which was not added to CMake until 3.28.

This should be trivially fixable by making the application of CXX_SCAN_FOR_MODULES conditional based on CMake version, like:

if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.28")
	set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_SCAN_FOR_MODULES 0)
endif()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions