I'm trying to build FreeCAD (branch "occt7bernd" ) on Debian 8.4. But i keep getting the error message "/usr/bin/ld: cannot find -lQt5::Widgets".
It seems to me that the trouble starts already with cmake:
CMake Warning (dev) at src/Mod/MeshPart/Gui/CMakeLists.txt:62 (add_library):
Code: Select all
Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target "MeshPartGui" links to target "Qt5::Widgets" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
This warning is for project developers. Use -Wno-dev to suppress it.
Code: Select all
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f760fe..ae86dd2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,9 @@ if(COMMAND cmake_policy)
if(POLICY CMP0050)
cmake_policy(SET CMP0050 OLD)
endif(POLICY CMP0050)
+ if(POLICY CMP0028)
+ cmake_policy(SET CMP0028 OLD)
+ endif(POLICY CMP0028)
endif(COMMAND cmake_policy)
Did anyone encounter the same problem and has an idea how to solve it?