在安装mysql 5.5.xx 时运行cmake命令是出现CMake Error: The source directory does not appear to contain CMakeLists.txt.的错误,刚開始以为是cmake版本号有问题,到最后才发现是当前文件夹错了. 在运行cmake时没有切换到mysql的源代码文件夹导致了这个错误,切换到mysql的源代码文件夹又一次运行cmake命令就可以. 下面的命令在解压后的文件夹内运行下面命令: cmake \ -DCMAKE_IN
CMake中与export()相关的命令 (注:红色字体是标题,粉色是需要特别需要注意的地方) 总的来说,export()命令想要做的事情可以用一句话概括:Export targets from the build tree for use by outside projects. 其具体的用法有以下三个: one: export(EXPORT <export-name> [NAMESPACE <namespace>] [FILE <filename>]) Create
CMAKE_INSTALL_PREFIX Install directory used by install(). if make install is invoked or INSTALL is built, this directory is prepended onto(预先加到) all install directories. This variable defaults to /usr/local on UNIX and c:/Program Files on Windows. On