Windows 下面终于是编译通过
This commit is contained in:
@@ -6,6 +6,10 @@ set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/Zc:__cplusplus)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
||||
@@ -93,9 +97,18 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows" OR WIN32)
|
||||
vulkan/FaceApp.cpp
|
||||
vulkan/main.cpp
|
||||
vulkan/lodepng.cpp
|
||||
third_party/vma/src/VmaUsage.h
|
||||
third_party/vma/src/VmaUsage.cpp
|
||||
third_party/fmt/src/format.cc
|
||||
vulkan/framework/common/error.cpp
|
||||
vulkan/framework/common/strings.cpp
|
||||
vulkan/framework/core/allocated.cpp
|
||||
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
target_compile_definitions(sample PRIVATE VK_NO_PROTOTYPES)
|
||||
target_compile_definitions(sample PRIVATE GLM_ENABLE_EXPERIMENTAL)
|
||||
target_compile_definitions(sample PRIVATE VULKAN_HPP_NO_STRUCT_CONSTRUCTORS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user