1

我在 openSuse 12.3 上安装了 CMake 版本 2.8.10。不幸的是,我使用的代码仅与 CMake 2.8.6 兼容。所以,我想知道从 cmake 2.8.10 到 2.8.6 是否有任何向后兼容性。

4

1 回答 1

0

如果您收到以下错误消息:

CTEST_USE_LAUNCHERS is enabled, but the
RULE_LAUNCH_COMPILE global property is not defined.
Did you forget to include(CTest) in the toplevel
CMakeLists.txt ?

...那么问题的解决方案是添加以下之一:

include(CTest)

或者

include(CTestUseLaunchers)

到您的 CMakeLists.txt 文件。

如果需要 2.8.6 或 2.8.10 处理 CMakeLists.txt 文件,则应使用 include(CTest) 行。CTestUseLaunchers 被拆分成自己的文件,但直到 CMake 版本 2.8.10...

于 2013-09-09T21:39:03.000 回答