The evil CMake -- File system, path notation, slash
来源:互联网 发布:mac au cs6中文版下载 编辑:程序博客网 时间:2024/05/14 05:50
CMake file system use the front-slash '/' as the path seperator, but under Windows systems, this can cause problems(we all know that Windows use the back-slash '\' as the path seperator), especially in command line.
CMake has provided us the command FILE(TO_NATIVE_PATH) to convert CMake path into the native system path, and FILE(TO_CMAKE_PATH), vice versa. The example is:
CMake has provided us the command FILE(TO_NATIVE_PATH) to convert CMake path into the native system path, and FILE(TO_CMAKE_PATH), vice versa. The example is:
# Convert CMake path into native pathFILE(TO_NATIVE_PATH ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY} NATIVE_OUTPUT_PATH)MESSAGE(STATUS "This is the native output path=" ${NATIVE_OUTPUT_PATH})
- The evil CMake -- File system, path notation, slash
- the evil cmake -- string concatenation
- The longest absolute path in file system
- the evil cmake -- gnu makefiles Debug Release adding post-fix
- The evil CMake -- Compile bug, missing ')', error line number
- cannot be resolved to absolute file path because it does not reside in the file system
- cannot be resolved to absolute file path because it does not reside in the file system
- the evil VC -- Visual C++ project, macro, output file
- The proc File System:
- The System.map File
- The Google File System
- The Google File System
- The Google File System
- The /proc File System
- The /proc File System
- The Google File System
- The Google File System
- The Google File System
- 苹果官方文档-线程编程指南之一:介绍
- the evil VC -- Visual C++ project, macro, output file
- PHP内核介绍及扩展开发指南—基础知识
- 键盘符号的英文读法
- PHP内核介绍及扩展开发指南—Extensions 的编写
- The evil CMake -- File system, path notation, slash
- 出租房的照片
- 强连通分量 Tarjan算法
- The evil Windows -- Command line, copy and delete files
- ubuntu下使用sqldeveloper每次输入jdk路径的解决方法
- PHP内核介绍及扩展开发指南—高级主题
- ubuntu 10.04如何安装kdevelop
- iptables、ebtables、arptables
- Nat组网