Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Forced include mechanism in FindComputeCpp.cmake does not work in Visual Studio 2015 #159

@jpg85

Description

@jpg85

Forced include method doesn't work properly under VS2015.
The line:
set(forceIncludeFlags "/FI ${includedFile} /TP")
Gets split by spaces and the "includedFile" becomes part of the "AdditionalOptions" and a blank "ForcedIncludeFiles" tag is created.

If the line is changed to:
set(forceIncludeFlags "/FI${includedFile} /TP")
The ForcedInclude tag is properly populated with "includedFile". Note that I haven't tested the solution for paths with spaces or multiple files.

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