在VisualStudio 7 x64和Windows2010中,我需要知道如何设置Cmake路径。
有一条错误消息说
Add the installation prefix of "MITK" to CMAKE_PREFIX_PATH or set "MITK_DIR" to a directory containing one of the above files.你知道如何添加"MITK“的安装前缀吗?
发布于 2015-04-23 20:52:03
要将某些内容附加到CMAKE_PREFIX_PATH,您可以使用类似于(1)的内容:
list(APPEND CMAKE_PREFIX_PATH "C:/some-path/")在调用CMake时,也可以从控制台设置一些变量。例如(2):
cmake -DMITK_DIR:STRING="C:/some-path" .. 或直接在CMakeLists.txt中(3):
set(MITK_DIR "C:/some-path")1
3
https://stackoverflow.com/questions/29817670
复制相似问题