Assimp's CMake config files are malformed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
assimp (Ubuntu) |
Fix Committed
|
Undecided
|
IOhannes m zmoelnig |
Bug Description
The CMake config files shipped with the libassimp-dev package in Ubuntu 20.04 are malformed, and export the wrong include directories.
I prepare a minimal reproducible example in https:/
To reproduce it, just compile it as:
git clone https:/
cd 1046013d018ff99
chmod +x build.sh
./build.sh
This will fail with the message:
~~~
-- Detecting CXX compile features - done
CMake Warning (dev) at /usr/lib/
if given arguments:
"ON"
An argument named "ON" appears in a conditional statement. Policy CMP0012
is not set: if() recognizes numbers and boolean constants. Run "cmake
--help-policy CMP0012" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
Call Stack (most recent call first):
/usr/
CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
CMake Error in CMakeLists.txt:
Imported target "assimp::assimp" includes non-existent path
"/usr/
in its INTERFACE_
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
CMake Error in CMakeLists.txt:
Imported target "assimp::assimp" includes non-existent path
"/usr/
in its INTERFACE_
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
~~~
Downstream bug: https:/
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.