The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
CMakeLists.txt bug
Ярослав Мыцьо
Guest

Hello everybody, I just found a bug in your CMakeLists.txt file in root of sources. When you use target_link_libraries, you should set modificator "LINK_PRIVATE". When I include SDL into my project using add_subdirectory, my main project begin to include same *.lib's file as SDL project.

Also, line 199 contains «add_definitions(-DUSING_GENERATED_CONFIG_H)». This line causes a error “Wrong SDL_config.h, check your include path?”

This bugs were detected in Windows, when I generate VS project