Skip to content

Commit 295266c

Browse files
authored
Merge pull request #9953 from sharkwouter/fix-double-libs-in-pkgconfig
CMake: Prevent double SDL2 and SDL2main entries in sdl2.pc
2 parents 863670c + 1803e65 commit 295266c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3158,7 +3158,7 @@ endif()
31583158

31593159
# Clean up the different lists
31603160
listtostr(EXTRA_LIBS _EXTRA_LIBS "-l")
3161-
set(SDL_STATIC_LIBS ${SDL_LIBS} ${EXTRA_LDFLAGS} ${_EXTRA_LIBS})
3161+
set(SDL_STATIC_LIBS ${EXTRA_LDFLAGS} ${_EXTRA_LIBS})
31623162
list(REMOVE_DUPLICATES SDL_STATIC_LIBS)
31633163
listtostr(SDL_STATIC_LIBS _SDL_STATIC_LIBS)
31643164
set(SDL_STATIC_LIBS ${_SDL_STATIC_LIBS})

0 commit comments

Comments
 (0)