Skip to content

clang-15: error: no such file or directory: '/std:c++17' #437

Answered by ShenMian
sleepybeard asked this question in Q&A
Discussion options

You must be logged in to vote

if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")

JoltPhysics 中的 CMakeListst.txt 看上去是通过操作系统来判断可能的编译器类型, 所以在 Windows 下使用 clang 编译依然会转递给编译器 MSVC 的参数.
可以尝试用 MSVC 进行编译, 或对相应的 CMakeLists.txt 文件进行修改.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sleepybeard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants