Skip to content

VecMathTargets.cmake adds include directory pointing to the build directory #1

@amadio

Description

@amadio

target_include_directories(VecMath INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)

Snippet from my installed VecMathTargets.cmake

# Create imported target VecMath::VecMath
add_library(VecMath::VecMath INTERFACE IMPORTED)

set_target_properties(VecMath::VecMath PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "/var/tmp/portage/dev-libs/vecmath/work/vecmath/include"
  INTERFACE_LINK_LIBRARIES "VecCore::VecCore"
)

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