From f7b8b61def93da9bd80045a5ab74f1c9554afe01 Mon Sep 17 00:00:00 2001 From: timlyeee <43355299+timlyeee@users.noreply.github.com> Date: Mon, 21 Jun 2021 15:34:41 +0800 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 00112613..f2d44f9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,11 @@ include(${CMAKE_CURRENT_LIST_DIR}/cmake/CocosExternalConfig.cmake) include(${CMAKE_CURRENT_LIST_DIR}/sources/CMakeLists.txt) if(WINDOWS) - include(${CMAKE_CURRENT_LIST_DIR}/win64/CMakeLists.txt) + if(${CMAKE_SIZEOF_VOID_P} STREQUAL "4") + include(${CMAKE_CURRENT_LIST_DIR}/win32/CMakeLists.txt) + else() + include(${CMAKE_CURRENT_LIST_DIR}/win64/CMakeLists.txt) + endif() elseif(ANDROID) include(${CMAKE_CURRENT_LIST_DIR}/android/CMakeLists.txt) elseif(APPLE)