# HG changeset patch # User Jacob Alexander # Date 1397787656 25200 # Node ID f2e4dd42bdab4262e8feba8baad66dd373039a14 # Parent 552c77d294ef1f3e63497609eedb9643bf7f3e4b More Windows compatibility build fixes - Still not verified to work though. diff -r 552c77d294ef -r f2e4dd42bdab LoadFile/CMakeLists.txt --- a/LoadFile/CMakeLists.txt Thu Apr 17 18:49:40 2014 -0700 +++ b/LoadFile/CMakeLists.txt Thu Apr 17 19:20:56 2014 -0700 @@ -46,7 +46,7 @@ list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR} ) # Use local find scripts #| Linux - libusb -if( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" ) +if( CMAKE_SYSTEM_NAME MATCHES "Linux" ) # Find libusb (not 1.0) find_package( LibUSB REQUIRED ) @@ -60,7 +60,7 @@ set( LIBS ${LIBUSB_LIBRARIES} ) #| Windows -elseif( ${CMAKE_SYSTEM_NAME} MATCHES "Windows" ) +elseif( CMAKE_SYSTEM_NAME MATCHES "CYGWIN" ) message( AUTHOR_WARNING "Not Tested...") # Defines @@ -70,18 +70,21 @@ set( LIBS hid setupapi ) #| Mac OS X -elseif( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" ) +elseif( CMAKE_SYSTEM_NAME MATCHES "Darwin" ) message( AUTHOR_WARNING "Not Tested...") # Defines - XXX What is SDK? set( DEFINES -DUSE_APPLE_IOKIT -isysroot ${SDK} -Wl,-syslibroot,${SDK} -framework IOKit -framework CoreFoundation ) #| BSD - NetBSD and OpenBSD -elseif( ${CMAKE_SYSTEM_NAME} MATCHES "BSD" ) +elseif( CMAKE_SYSTEM_NAME MATCHES "BSD" ) message( AUTHOR_WARNING "Not Tested...") # Defines set( DEFINES -s -DUSE_UHID ) +#| Unregonized OS +else() + message( FATAL_ERROR "${CMAKE_SYSTEM_NAME}: OS Not Recognized..." ) endif()