fix problems when build with older linux due incomplete curl flags

* due stupid developers CURL is not right detected in minetest
* Author: PICCORO Lenz McKAY <mckaygerhard@gmail.com>
* Bug: https://github.com/minetest/minetest/issues/8483
* Bug: https://github.com/minetest/minetest/issues/8482
pull/8/head
mckaygerhard 2021-11-22 01:43:28 -04:00
parent dda9276abb
commit 00c3a46e83
1 changed files with 2 additions and 0 deletions

View File

@ -620,6 +620,7 @@ if(BUILD_CLIENT)
${PROJECT_NAME}${VERSION_MAJOR}
${CURL_LIBRARY}
)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lidn -lrtmp")
endif()
if(USE_FREETYPE)
if(FREETYPE_PKGCONFIG_FOUND)
@ -688,6 +689,7 @@ if(BUILD_SERVER)
${PROJECT_NAME}${VERSION_MAJOR}server
${CURL_LIBRARY}
)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lidn -lrtmp")
endif()
endif(BUILD_SERVER)