Browse Source

Fix EKOPath build

pull/44/merge
Daniel Scharrer 11 years ago
parent
commit
46bd9dad26
  1. 10
      CMakeLists.txt

10
CMakeLists.txt

@ -218,15 +218,19 @@ if(NOT WIN32)
check_symbol_exists(utimes "sys/time.h" INNOEXTRACT_HAVE_UTIMES)
endif()
check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP16 "__builtin_bswap16(0)")
if(CMAKE_CXX_COMPILER_ID STREQUAL "PathScale")
# EKOPath recognizes these but then fails to link
else()
check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP16 "__builtin_bswap16(0)")
check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP32 "__builtin_bswap32(0)")
check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP64 "__builtin_bswap64(0)")
endif()
if(NOT INNOEXTRACT_HAVE_BUILTIN_BSWAP16)
check_symbol_exists(bswap_16 "byteswap.h" INNOEXTRACT_HAVE_BSWAP_16)
endif()
check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP32 "__builtin_bswap32(0)")
if(NOT INNOEXTRACT_HAVE_BUILTIN_BSWAP32)
check_symbol_exists(bswap_32 "byteswap.h" INNOEXTRACT_HAVE_BSWAP_32)
endif()
check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP64 "__builtin_bswap64(0)")
if(NOT INNOEXTRACT_HAVE_BUILTIN_BSWAP64)
check_symbol_exists(bswap_64 "byteswap.h" INNOEXTRACT_HAVE_BSWAP_64)
endif()

Loading…
Cancel
Save