Skip to content

install destination #3

Description

@e-kwsm

For brevity CMAKE_INSTALL_PREFIX is assumed to be /usr/local on Linux.

install(
FILES version.txt
DESTINATION ${CMAKE_INSTALL_PREFIX}
)

This installs version.txt to /usr/local/version.txt! Why not use ${AU_INSTALL_ADDITIONAL_FILES_DIR} i.e. /usr/local/share/aocl-utils/?


set(AU_INSTALL_CMAKE_CONFIG_DIR "${CMAKE_INSTALL_LIBDIR}/CMake")

install(
DIRECTORY ${PROJECT_SOURCE_DIR}/CMake/
DESTINATION ${AU_INSTALL_LIB_DIR}/CMake
FILES_MATCHING PATTERN "*.cmake"
)

Also these installs CMake files to /usr/local/lib/CMake/ but the standard location is /usr/local/lib/cmake/aocl-utils/, which can be found by cmake.

Plus, I don’t think FindSphinx.cmake is necessary for installation.

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