Correcting a bug with the linker
This commit is contained in:
parent
3410b3df6f
commit
65a72f2ba8
@ -220,6 +220,13 @@ else()
|
|||||||
target_link_libraries(supertuxkart ${PTHREAD_LIBRARY})
|
target_link_libraries(supertuxkart ${PTHREAD_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# CURL
|
||||||
|
if(WIN32)
|
||||||
|
target_link_libraries(supertuxkart ${PROJECT_SOURCE_DIR}/dependencies/lib/libcurldll.a)
|
||||||
|
else()
|
||||||
|
find_package(CURL REQUIRED)
|
||||||
|
include_directories(${CURL_INCLUDE_DIRS})
|
||||||
|
endif()
|
||||||
|
|
||||||
# Common library dependencies
|
# Common library dependencies
|
||||||
target_link_libraries(supertuxkart
|
target_link_libraries(supertuxkart
|
||||||
@ -234,14 +241,6 @@ target_link_libraries(supertuxkart
|
|||||||
${OPENAL_LIBRARY}
|
${OPENAL_LIBRARY}
|
||||||
${OPENGL_LIBRARIES})
|
${OPENGL_LIBRARIES})
|
||||||
|
|
||||||
# CURL
|
|
||||||
if(WIN32)
|
|
||||||
target_link_libraries(supertuxkart ${PROJECT_SOURCE_DIR}/dependencies/lib/libcurldll.a)
|
|
||||||
else()
|
|
||||||
find_package(CURL REQUIRED)
|
|
||||||
include_directories(${CURL_INCLUDE_DIRS})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
# In theory it would be cleaner to let CMake detect the right dependencies. In practice, this means that if a OSX user has
|
# In theory it would be cleaner to let CMake detect the right dependencies. In practice, this means that if a OSX user has
|
||||||
|
Loading…
x
Reference in New Issue
Block a user