-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I followed the steps but failed in executing cmake .., the console shows messages as follows:
CMake Warning (dev) at CMakeLists.txt:88 (target_link_libraries):
Cannot specify link libraries for target "Medit3D" which is not built by
this project.
CMake does not support this but it used to work accidentally and is being
allowed for compatibility.
Policy CMP0016 is not set: target_link_libraries() reports error if its
only argument is not a target. Run "cmake --help-policy CMP0016" for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
and then if I continue execute make command I got errors as follows:
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Work/202304/20230425/Medit/build
[ 50%] Building C object CMakeFiles/medit.dir/src/medit.c.obj
In file included from D:\Work\202304\20230425\Medit\src\medit.c:6:
D:\Work\202304\20230425\Medit\src\medit.h:25:10: fatal error: GL/glut.h: No such file or directory
25 | #include <GL/glut.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles\medit.dir\build.make:75: CMakeFiles/medit.dir/src/medit.c.obj] Error 1
make[1]: *** [CMakeFiles\Makefile2:82: CMakeFiles/medit.dir/all] Error 2
make: *** [makefile:135: all] Error 2
I used Windows 10 as my OS, should I find and include <GL/glut.h>?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels