我有一个CMake设置,其中一个变量的可访问性将取决于是否设置了另一个变量。小片段:set(include_interrupt_dirs CACHE INTERNAL "interrupts/intr_4" FORCE)
option(enable-runtime-compilation
"Build in the runtime code compilation link in
在linux上调用ccmake树或在windows上使用cmake-gui (在这两种情况下都是成功的)时,这似乎没有问题。就像在cmake-gui上,我为Where to build the binaries指定了一条与where is the source code创建树外构建不同的路径,就像在Linux上的ccmake那么,cmake-gui和ccmake在做什么cmake没有做的事情,以及需要手动干预的地方?
编辑:在找到解决方案后,问题是我的源目录直接是一个windows驱动器号,而不是其中的一个子目录。