| Summary: | Static Library with CMake Broken | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ryan Edward <re.mcclue> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | ASSIGNED --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | Keywords: | target-2.0.16 |
| Version: | 2.0.10 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 10 | ||
Hi there, I’m on windows 10, using clang + mingw. I recently attempted to update to sdl2.0.10. I invoke the following command: cmake.exe -DCMAKE_BUILD_TYPE=Debug -G "MinGW Makefiles"^ -DCMAKE_C_FLAGS="-target x86_64-windows-gnu"^ -DCMAKE_C_COMPILER_ID="Clang" -DCMAKE_C_COMPILER="clang.exe"^ -DCMAKE_CXX_FLAGS="-target x86_64-windows-gnu"^ -DCMAKE_CXX_COMPILER_ID="Clang++" -DCMAKE_CXX_COMPILER="clang++.exe"^ -DDIRECTX=OFF -DSDL_TEST=OFF -DSDL_SHARED=OFF -DSDL_STATIC=ON .. cmake.exe --build . -- -j %NUMBER_OF_PROCESSORS% This produces un-usable ‘.lib’ files, specifically SDL2maind.lib and SDL2d.lib. Performing the same invocation on sdl2.0.9 gives usable ‘.a’ files, specifically libSDL2maind.a and libSDL2d.a. If this is a problem, could someone give me a link to an archived sdl2.0.9 source? Thanks.