Skip to content

In CMakeLists.txt, prefer if(MSVC) over if(${CMAKE_CXX_COMPILER_ID}...)ย #160

Closed
@martinmoene

Description

@martinmoene

Use if(MSVC), just like if(MSVC14) in a following line of CMakeLists.txt.

See e.g. Stackoverflow What's the CMake syntax to set and use variables?, section Recursive substitutions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions