AIX: install(TARGETS) not working
CMake code:
include(GNUInstallDirs)
# Collect all binaries under bin/ folder
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
...
set(EXE exeName)
add_executable(${EXE} main.cpp)
install(TARGETS ${EXE} RUNTIME)
cmake --install .
output:
CMake Error at apps/.../cmake_install.cmake:46 (file):
file INSTALL cannot find
"/build/aix6/.../CMakeFiles/CMakeRelink.dir/exeName":
No such file or directory.
Call Stack (most recent call first):
apps/cmake_install.cmake:52 (include)
cmake_install.cmake:42 (include)
Edited by Sarang Joshi