Permalink
Browse files

Framework build: Add sdl2 library with full path

Required if the sdl2 library is in a path not already in the linker search path
  • Loading branch information...
JonnyH committed Dec 21, 2017
1 parent 55a2834 commit 579570023c6f0527633e008ede83cd4184f0a5ba
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/CMakeLists.txt
View
@@ -251,7 +251,7 @@ foreach (SDL2_LIB ${PC_SDL2_LIBRARIES})
message(FATAL_ERROR "sdl2 library ${SDL2_LIB} not found in ${PC_SDL2_LIBRARY_DIRS}")
endif()
message("Found ${SDL2_LIB} at ${SDL2_LIBRARY_PATH-${SDL2_LIB}}")
target_link_libraries(OpenApoc_Framework PUBLIC ${SDL2_LIB})
target_link_libraries(OpenApoc_Framework PUBLIC ${SDL2_LIBRARY_PATH-${SDL2_LIB}})
endforeach()
target_include_directories(OpenApoc_Framework PUBLIC ${PC_SDL2_INCLUDE_DIRS})

0 comments on commit 5795700

Please sign in to comment.