【发布时间】:2017-12-07 14:40:22
【问题描述】:
在 Linux 上,我将 CMake 配置为在 bin 文件夹中安装输出。
然后我可以在终端中调用可执行文件,无论当前目录是什么。
我做到了:
Install(TARGETS ... DESTINATION bin)
在 Windows 上,它不起作用。它告诉我:
'whatever' 不被识别为内部或外部命令, 可运行的程序或批处理文件。
Windows 的等效目标是什么?
【问题讨论】:
-
可能复制到"What is the equivalent of the bin directory for Windows?"。我不觉得这个问题是特定于 CMake 的。
标签: windows cmake environment-variables