Skip to content
Snippets Groups Projects
Commit 2362637e authored by Benoit Neil's avatar Benoit Neil
Browse files

Removed the "lib" prefix under linux ("was "liblibcurl") and fixed import...

Removed the "lib" prefix under linux ("was "liblibcurl") and fixed import library name under Win32 (Added "_imp" for dynamically linked).
parent edd02607
No related branches found
No related tags found
No related merge requests found
......@@ -224,12 +224,21 @@ ENDIF()
# ADD_DEFINITIONS( -DUSE_SSLEAY )
# ENDIF()
# IF(MSVC)
# IF(NOT BUILD_RELEASE_DEBUG_DIRS)
# # Ugly workaround to remove the "/debug" or "/release" in each output
# SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "../")
# SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES IMPORT_PREFIX "../")
# ENDIF()
# # Add "_imp" as a suffix before the extension
# SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES IMPORT_SUFFIX "_imp.lib")
# ENDIF()
# Remove the "lib" prefix since the library is already named "libcurl".
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "")
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES IMPORT_PREFIX "")
IF(MSVC)
IF(NOT BUILD_RELEASE_DEBUG_DIRS)
# Ugly workaround to remove the "/debug" or "/release" in each output
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES PREFIX "../")
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES IMPORT_PREFIX "../")
ENDIF()
ENDIF()
IF(WIN32)
IF(NOT CURL_STATICLIB)
# Add "_imp" as a suffix before the extension to avoid conflicting with the statically linked "libcurl.lib"
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES IMPORT_SUFFIX "_imp.lib")
ENDIF()
ENDIF()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment