10000 Can't work with cmake FetchContent · Issue #23 · ibc/libsdptransform · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Can't work with cmake FetchContent #23
Open
@loveyacper

Description

@loveyacper

use libsdptransform with cmake FetchContent as below:

FetchContent_Declare(
    sdptransform
    GIT_REPOSITORY https://github.com/loveyacper/libsdptransform.git
    GIT_TAG master
)
FetchContent_MakeAvailable(sdptransform)

cmake version is 3.18.2, gcc version is 8.4.1.

Compiler generates errors like this:

fatal error: sdptransform.hpp: No such file or directory
 #include "sdptransform.hpp"

To fix it, we should add one line in CMakeLists.txt:

target_include_directories(sdptransform PUBLIC ${PROJECT_SOURCE_DIR}/include)

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

      0