Hi,
changing the definition of LLVM_CMAKE_DIR is not sufficient to resolve this,
because the LLVM targets in LLVM-Exports.cmake are not set up properly, leading to this:
(result of a CMakeLists.txt containing 'find_package(LLVM REQUIRED)'):
CMake Error at /usr/share/llvm-3.5/cmake/LLVMExports.cmake:6 (set_property):
set_property could not find TARGET LLVMSupport. Perhaps it has not yet
been created.
Call Stack (most recent call first):
/usr/share/llvm-3.5/cmake/LLVMConfig.cmake:50 (include)
cmake/modules/SearchInstalledSoftware.cmake:654 (find_package)
CMakeLists.txt:46 (include)
CMake Error at /usr/share/llvm-3.5/cmake/LLVMExports.cmake:7 (set_property):
set_property could not find TARGET LLVMAArch64Utils. Perhaps it has not
yet been created.
Call Stack (most recent call first):
/usr/share/llvm-3.5/cmake/LLVMConfig.cmake:50 (include)
cmake/modules/SearchInstalledSoftware.cmake:654 (find_package)
CMakeLists.txt:46 (include)
This is because the 'Exports' file is full of commands to set properties on the targets,
but the targets are never defined (imported) anywhere.
Hi,
changing the definition of LLVM_CMAKE_DIR is not sufficient to resolve this,
because the LLVM targets in LLVM-Exports.cmake are not set up properly, leading to this:
(result of a CMakeLists.txt containing 'find_package(LLVM REQUIRED)'):
CMake Error at /usr/share/ llvm-3. 5/cmake/ LLVMExports. cmake:6 (set_property): share/llvm- 3.5/cmake/ LLVMConfig. cmake:50 (include) modules/ SearchInstalled Software. cmake:654 (find_package)
set_property could not find TARGET LLVMSupport. Perhaps it has not yet
been created.
Call Stack (most recent call first):
/usr/
cmake/
CMakeLists.txt:46 (include)
CMake Error at /usr/share/ llvm-3. 5/cmake/ LLVMExports. cmake:7 (set_property): share/llvm- 3.5/cmake/ LLVMConfig. cmake:50 (include) modules/ SearchInstalled Software. cmake:654 (find_package)
set_property could not find TARGET LLVMAArch64Utils. Perhaps it has not
yet been created.
Call Stack (most recent call first):
/usr/
cmake/
CMakeLists.txt:46 (include)
This is because the 'Exports' file is full of commands to set properties on the targets,
but the targets are never defined (imported) anywhere.