Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
456 views
in Technique[技术] by (71.8m points)

cmake - Does check_symbol_exists work on network drives? Or have some other similar limitation?

I have a CMake file that works everywhere I've tried it except on a virtual machine.

I tried making a minimal example:

include(CheckSymbolExists)
CHECK_SYMBOL_EXISTS( "A" "C:/Users/user/Downloads/test.h" X)
MESSAGE( STATUS "X: ${X}" )

Which outputs "X:".

Where C:/Users/user/Downloads/test.h contains

#define A

The only thing I can think of is the fact that the virtual machine is using some sort of network drive where the paths aren't the real paths? If there is not a known reason why that wouldn't work is there a verbose mode or some better way to debug this?

The installed version of CMake is 3.18.1, unfortunately I don't have a way to update to the newest version.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...