【发布时间】:2017-03-08 00:05:00
【问题描述】:
我的.cmake 文件中有一个if 声明,内容如下:
if( (NOT ${GCC_VERSION} GREATER some_version ) AND something EQUAL somethingelse)
#todo ...
endif()
我只需要NOT 来对语句进行第一次检查。
我收到以下错误:
CMake Error: Error in cmake code at
/.../XXX.cmake:123:
Parse error. Function missing ending ")". Instead found left paren with text "(".
感谢您的帮助。
【问题讨论】:
-
我无法在本地重现此内容。哪个 CMake 版本?能否提供一个独立的minimal reproducible example?
标签: cmake