When opening the project as a folder using the built in Visual studio Cmake support the Cmake generation fails.
Changing AXConfigDefine.cmake file to comment out the following lines fixes it:
`# config c standard
if(NOT DEFINED CMAKE_C_STANDARD)
if (WINDOWS)
message(STATUS "CMAKE_HOST_SYSTEM_VERSION: ${CMAKE_HOST_SYSTEM_VERSION}")
message(STATUS "CMAKE_SYSTEM_VERSION: ${CMAKE_SYSTEM_VERSION}")
message(STATUS "CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION: ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")
if (${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION} VERSION_GREATER_EQUAL "10.0.22000.0")
#set(CMAKE_C_STANDARD 11)
#else()
# windows sdk < 10.0.22000.0, The c11 header stdalign.h was missing, so workaroud fallback C standard to 99
# refer to: https://github.com/axmolengine/axmol/issues/991
set(CMAKE_C_STANDARD 99)
#endif()
else()
set(CMAKE_C_STANDARD 11)
endif()
When opening the project as a folder using the built in Visual studio Cmake support the Cmake generation fails. Changing AXConfigDefine.cmake file to comment out the following lines fixes it:
`# config c standard if(NOT DEFINED CMAKE_C_STANDARD) if (WINDOWS) message(STATUS "CMAKE_HOST_SYSTEM_VERSION: ${CMAKE_HOST_SYSTEM_VERSION}") message(STATUS "CMAKE_SYSTEM_VERSION: ${CMAKE_SYSTEM_VERSION}") message(STATUS "CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION: ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")
if (${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION} VERSION_GREATER_EQUAL "10.0.22000.0")
endif() `