Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assimp is not compiled with clang #5519

Open
michaelzaki-12 opened this issue Mar 29, 2024 · 0 comments
Open

assimp is not compiled with clang #5519

michaelzaki-12 opened this issue Mar 29, 2024 · 0 comments
Labels
Bug Global flag to mark a deviation from expected behaviour

Comments

@michaelzaki-12
Copy link

i am using cmake for my project, but when i use clang to compile it gives me this error
Severity Code Description Project File Line Suppression State Details
Error unsafe buffer access [-Werror,-Wunsafe-buffer-usage] C:\Users\User\Source\Repos\MyProject\out\build\x64-Clang-Release\piratesengine C:\Users\User\Source\Repos\MyProject\assimp\include\assimp\fast_atof.h 178
But I don't Get the same error when compiling with MSVC

Here is How my cmake look like

assimp

set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "" FORCE)
set(ASSIMP_BUILD_TESTS OFF CACHE INTERNAL "" FORCE)
set(ASSIMP_NO_EXPORT ON CACHE INTERNAL "" FORCE)
set(ASSIMP_BUILD_TESTS OFF CACHE INTERNAL "" FORCE)
set(ASSIMP_BUILD_ASSIMP_TOOLS OFF CACHE INTERNAL "" FORCE)

add_subdirectory(assimp)

include_directories(${CMAKE_SOURCE_DIR}/assimp/include)
target_link_libraries( MyProject PRIVATE ${OPENGL_LIBRARIES} glfw assimp)

i am Using windows 11 with visual studio 2022.

Additional context
Add any other context about the problem here.

@michaelzaki-12 michaelzaki-12 added the Bug Global flag to mark a deviation from expected behaviour label Mar 29, 2024
kimkulling added a commit that referenced this issue Apr 9, 2024
- Add windows clang build step
- Help to evaluate #5519
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Global flag to mark a deviation from expected behaviour
Projects
None yet
Development

No branches or pull requests

1 participant