From e3d8a791a00529dd43b70f8909a7dd6b0fa251d4 Mon Sep 17 00:00:00 2001 From: Bailey Chittle Date: Wed, 4 Jan 2023 10:21:16 -0500 Subject: [PATCH] cmake toolchain files can't be set inside cmakelists.txt, maybe at the start? --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b1064ac0a7..2973ec5576 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,10 +216,8 @@ function(install_windows_deps) # set(CMAKE_TOOLCHAIN_FILE # ${CMAKE_CURRENT_SOURCE_DIR}/tools/vcpkg/scripts/buildsystems/vcpkg.cmake # PARENT_SCOPE) - include( - ${CMAKE_CURRENT_SOURCE_DIR}/tools/vcpkg/scripts/buildsystems/vcpkg.cmake - PARENT_SCOPE - ) + message("Make sure that vcpkg.cmake is set as the CMAKE_TOOLCHAIN_FILE at the START of the cmake build process! + Can be command-line arg (cmake -DCMAKE_TOOLCHAIN_FILE=...) or set in your editor of choice.") endfunction()