From c01b961be0a46c492427c72258058d3036f2baa1 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Thu, 31 Jan 2013 16:04:47 +0100 Subject: [PATCH] Fixes CMake under GNU/Linux --- utils/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index 57f4f03..01a2cfb 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -21,10 +21,12 @@ FOREACH(source ${UTILS-SOURCES}) LIST(APPEND TARGETS mifare) ENDIF((${source} MATCHES "nfc-mfultralight") OR (${source} MATCHES "nfc-mfclassic")) - IF(${source} MATCHES "nfc-scan-device") - LIST(APPEND TARGETS ../contrib/win32/nfc_win32) - INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../contrib/win32) - ENDIF(${source} MATCHES "nfc-scan-device") + IF(WIN32) + IF(${source} MATCHES "nfc-scan-device") + LIST(APPEND TARGETS ../contrib/win32/nfc_win32) + INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../contrib/win32) + ENDIF(${source} MATCHES "nfc-scan-device") + ENDIF(WIN32) ADD_EXECUTABLE(${source} ${TARGETS})