From a82d239efccb0368f57c45978bc0036ad189146b Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Thu, 17 Apr 2014 19:20:56 -0700 Subject: [PATCH] More Windows compatibility build fixes - Still not verified to work though. --- LoadFile/CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/LoadFile/CMakeLists.txt b/LoadFile/CMakeLists.txt index a2f252b..4b4c249 100644 --- a/LoadFile/CMakeLists.txt +++ b/LoadFile/CMakeLists.txt @@ -46,7 +46,7 @@ set( SRCS 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 @@ if( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" ) 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 @@ elseif( ${CMAKE_SYSTEM_NAME} MATCHES "Windows" ) 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()