CMake 学习记录

在cmake >=2.6.0时,使用下面的方法可以给源码文件一个FILENAME的宏定义 cmakepolicy(PUSH) cmakepolicy(SET CMP0005 OLD) # Temporarily disable new-style escaping. add_definitions(-D__FILENAME=\"$(<F)\") cmake_policy(POP)

results matching ""

    No results matching ""