Skip to content

Commit

Permalink
Fix system detection
Browse files Browse the repository at this point in the history
  • Loading branch information
cfnptr committed Aug 27, 2024
1 parent 47d7bd4 commit 48e2d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(TARGET nets-static)
return()
endif()

if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
set(CMAKE_TOOLCHAIN_FILE $ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake)
if (NOT EXISTS ${CMAKE_TOOLCHAIN_FILE})
message(FATAL_ERROR "vcpkg is not installed or added to the System Environment Variables.")
Expand Down

0 comments on commit 48e2d68

Please sign in to comment.