想让find_path
做我想做的事。
find_path(temmp include/help.h)
message("temmp= ${temmp}")
help.h找到了输出为temmp= /usr/local/toolA
find_path(temmp include/foo.shoe)
message("temmp= ${temmp}")
404-页面不存在页面不存在.输出为x1m2 n1该高速缓存变量存在,因此变量(temmp)未被更改。
我尝试用这个来清除该高速缓存var:
set (temmp "" CACHE INTERNAL "")
find_path(temmp include/help.h)
message("temmp= ${temmp}")
无更改。变量被清除,但仍然存在。输出为temmp=
(find_path
不运行。)
如何从该高速缓存中删除temmp
变量?(我想强制find_path
再次运行。)
1条答案
按热度按时间s4n0splo1#
可以使用
unset
:顺便说一下,
find_path
调用应该更像是: