Solve cmake error while importing SDL2.

This commit is contained in:
Pedro Velho 2018-12-27 16:25:30 +01:00
parent 7a949ddd0e
commit d638096a1b
1 changed files with 1 additions and 0 deletions

View File

@ -172,6 +172,7 @@ endif (UNIX)
find_package(SDL2 REQUIRED) find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIR}) include_directories(${SDL2_INCLUDE_DIR})
string(STRIP ${SDL2_LIBRARIES} SDL2_LIBRARIES)
link_libraries(${SDL2_LIBRARIES}) link_libraries(${SDL2_LIBRARIES})
add_executable(${PROJECT_WX} ${SOURCES}) add_executable(${PROJECT_WX} ${SOURCES})