[问题] WebSocket++ Makefile.txt error

楼主: smartjay (高毛毛)   2018-03-16 14:14:35
最近因为研究网络websocket 下载github上的专案 websocketpp
https://github.com/zaphoyd/websocketpp
欲测试里面examples/echo_server 利用
Makefile.txt 下 cmake . 发生错误
目前还在研究Linux系统,以下是错误讯息
[email protected]T:~$ cd websocketpp/examples/echo_server
[email protected]:~/websocketpp/examples/echo_server$ ls
CMakeCache.txt CMakeLists.txt echo_server.cpp
CMakeFiles echo_handler.hpp SConscript
[email protected]:~/websocketpp/examples/echo_server$ cmake .
CMake Error at CMakeLists.txt:5 (init_target):
Unknown CMake command "init_target".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.5)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake
作者: hizuki (ayaka)   2018-03-16 14:49:00
cmake请在top执行,你这个位置是cmake ./../..
楼主: smartjay (高毛毛)   2018-03-16 21:59:00
谢谢指导,在websocketpp/可以执行cmake cmakefile.txt在example/echo_server 位置内的cmake makefile.txt无法

Links booklink

Contact Us: admin [ a t ] ucptt.com