Skip to content

Is there any way to keep compiler detection and use VCPKG_CHAINLOAD_TOOLCHAIN_FILE triplet variable? #43624

Answered by Neumann-A
ccpjosephf asked this question in Q&A
Discussion options

You must be logged in to vote

CMake Error at CMakeLists.txt:11 (enable_language):
No CMAKE_C_COMPILER could be found.

There should be a *.yaml file in a subdirectory with the corresponding logs of the cmake compiler detection run.

In fact this error does dissappear if I set CMAKE_C_COMPILER and CMAKE_CXX_COMPILER manually (which I don't want to have to do) in that toolchain file,

Sounds like the compiler is not on PATH? Setting the compiler explicit in the toolchain is generally ok and should be done (unless you use an absolute path)

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ccpjosephf
Comment options

@Neumann-A
Comment options

@ccpjosephf
Comment options

@Neumann-A
Comment options

Answer selected by ccpjosephf
@ccpjosephf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants