| Summary: | SDL_CMAKE_DEBUG_POSTFIX can not take an empty string | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Yuriy Levchenko <irov13> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | tesch1 |
| Version: | 2.0.10 | Keywords: | target-2.0.12 |
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
I've also just stumbled upon this bug.
Another possible fix would be to just add quotes around the variable expansion:
set_target_properties(SDL2main PROPERTIES DEBUG_POSTFIX "${SDL_CMAKE_DEBUG_POSTFIX}")
This occurs on lines 1795, 1825, 1865 of CMakeLists.txt
This is fixed in https://hg.libsdl.org/SDL/rev/8cd53e2d31a5, thanks! --ryan. |
If I set this option to "", then I get an error in this code set_target_properties(SDL2main PROPERTIES DEBUG_POSTFIX ${SDL_CMAKE_DEBUG_POSTFIX}) add a check that this variable exists, like this if(SDL_CMAKE_DEBUG_POSTFIX) set_target_properties(SDL2main PROPERTIES DEBUG_POSTFIX ${SDL_CMAKE_DEBUG_POSTFIX}) endif() Thanks!