Project

General

Profile

Patch #1192 » cmake_libdl.diff

Matthieu Volat, 14 Jun 2016 07:43

View differences:

src/CMakeLists.txt (working copy)
238 238
    OUTPUT_NAME   exiv2
239 239
)
240 240

  
241
IF ( UNIX ) 
242
  IF ( NOT CYGWIN AND NOT MINGW )
243
    SET (LINUX 1)
244
  ENDIF()
245
ENDIF()
246

  
247 241
if ( MSVC )
248 242
    source_group("Header Files" FILES ${LIBEXIV2_HDR} )
249 243
    TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} ${EXPAT_LIBRARIES} )
......
252 246
    source_group("Header Files" FILES ${SSH_HDR} )
253 247
    TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} ${SSH_LIBRARIES} )
254 248
else()
255
    if ( LINUX )
249
    if ( ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" )
256 250
        TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} dl ${EXPAT_LIBRARIES} )
257 251
        TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} dl ${CURL_LIBRARIES} )
258 252
        TARGET_LINK_LIBRARIES( exiv2lib ${PRIVATE_VAR} dl ${SSH_LIBRARIES} )
(2-2/2)