mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fixed string() when no SDL
This commit is contained in:
parent
2929bd82a5
commit
261b15851f
1 changed files with 5 additions and 3 deletions
|
@ -54,7 +54,9 @@ if(WIN32)
|
|||
elseif(UNIX)
|
||||
find_package(SDL2 REQUIRED)
|
||||
|
||||
string(STRIP ${SDL2_LIBRARIES} SDL2_LIBRARIES)
|
||||
target_include_directories(omohsdl PUBLIC ${SDL2_INCLUDE_DIRS})
|
||||
target_link_libraries(omohsdl PRIVATE ${SDL2_LIBRARIES})
|
||||
if (SDL2_FOUND)
|
||||
string(STRIP ${SDL2_LIBRARIES} SDL2_LIBRARIES)
|
||||
target_include_directories(omohsdl PUBLIC ${SDL2_INCLUDE_DIRS})
|
||||
target_link_libraries(omohsdl PRIVATE ${SDL2_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue