diff options
| author | hexlocation <hex@iwakura.rip> | 2026-03-06 01:54:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-06 07:54:40 +0700 |
| commit | 34c22f6ab58a48cb07ba583d270084806e892d5c (patch) | |
| tree | d6bbabf17a2ab7c77f8ec6fda8e64319e72429ac | |
| parent | b7b29c0b7b191313a9ac9cb33696577ab324fd70 (diff) | |
fix: properly detect host env. (#628)
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ce3f0799..dbdef3f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,7 +88,7 @@ target_link_libraries(MinecraftClient PRIVATE > ) -if(WIN32) +if(CMAKE_HOST_WIN32) message(STATUS "Starting redist copy...") execute_process( COMMAND robocopy.exe @@ -117,7 +117,7 @@ if(WIN32) /S /MT /R:0 /W:0 /NP /XF "*.h" "*.xml" "*.lang" "*.bat" ) -elseif(UNIX) +elseif(CMAKE_HOST_UNIX) message(STATUS "Starting redist copy...") execute_process( COMMAND rsync -av "${CMAKE_CURRENT_SOURCE_DIR}/x64/Release/" "${CMAKE_CURRENT_BINARY_DIR}/" |
