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.
For brevity
CMAKE_INSTALL_PREFIXis assumed to be/usr/localon Linux.aocl-utils/CMake/au_install.cmake
Lines 78 to 81 in deb4187
This installs version.txt to
/usr/local/version.txt! Why not use${AU_INSTALL_ADDITIONAL_FILES_DIR}i.e./usr/local/share/aocl-utils/?aocl-utils/CMake/au_project.cmake
Line 63 in deb4187
aocl-utils/CMake/au_install.cmake
Lines 65 to 69 in deb4187
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.