Skip to content

Commit

Permalink
cmake toolchain files can't be set inside cmakelists.txt, maybe at th…
Browse files Browse the repository at this point in the history
…e start?
  • Loading branch information
bachittle committed Jan 4, 2023
1 parent 070a675 commit e3d8a79
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit e3d8a79

Please sign in to comment.