Skip to content

visit incompatible with cmake 4.0 #20304

@Febbe

Description

@Febbe

Describe the bug

Since the cmake configuration uses a lot of deprecated cmake_policies which are removed in cmake 4.0.0, the visit library does not compile anymore.

To Reproduce

Steps to reproduce the behavior. For example:

  1. install cmake 4.0
  2. run cmake configure

Expected behavior

Visit should configure.

Attachments

Caused by

if(COMMAND cmake_policy)
    cmake_policy(SET CMP0033 OLD)
    if(WIN32)
        # don't automatically link with qtmain
        cmake_policy(SET CMP0020 OLD)
        if(POLICY CMP0091) # introduced in cmake 3.15
            # Tell CMake to always use /MD, even for debug builds.
            # Done because prebuilt TP libraries are built with /MD and
            # if debug build of VisIt uses /MDd there are runtime issues.
            cmake_policy(SET CMP0091 NEW) # MSVC_RUNTIME_LIBRARY
            set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
        endif()
    endif()
endif()

Desktop

  • Windows 11
  • compiler: clang version 18.1.4 Target: x86_64-pc-windows-msvc
  • VisIt Version: main

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingimpact mediumProductivity partially degraded (not easily mitigated bug) or improved (enhancement)likelihood mediumNeither low nor high likelihoodreviewedIssue has been reviewed and labeled by a developer

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions