From df0a3beca901b734c6e9037334feaffe604f99b0 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Fri, 16 Feb 2024 14:52:20 +0100 Subject: [PATCH] Fix cmake warning CMake Warning (dev) at utils/CMakeLists.txt:50 (ADD_EXECUTABLE): Policy CMP0115 is not set: Source file extensions must be explicit. Run "cmake --help-policy CMP0115" for policy details. Use the cmake_policy command to set the policy and suppress this warning. File: /home/rousseau/Documents/github/libnfc/utils/jewel.c This warning is for project developers. Use -Wno-dev to suppress it. --- utils/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index 273466bf..b9c723ea 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -30,16 +30,16 @@ FOREACH(source ${UTILS-SOURCES}) ENDIF(WIN32) IF(${source} MATCHES "nfc-jewel") - LIST(APPEND TARGETS jewel) + LIST(APPEND TARGETS jewel.c) ENDIF(${source} MATCHES "nfc-jewel") IF((${source} MATCHES "nfc-mfultralight") OR (${source} MATCHES "nfc-mfclassic")) - LIST(APPEND TARGETS mifare) + LIST(APPEND TARGETS mifare.c) ENDIF((${source} MATCHES "nfc-mfultralight") OR (${source} MATCHES "nfc-mfclassic")) IF(WIN32) IF(${source} MATCHES "nfc-scan-device") - LIST(APPEND TARGETS ../contrib/win32/stdlib) + LIST(APPEND TARGETS ../contrib/win32/stdlib.c) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../contrib/win32) ENDIF(${source} MATCHES "nfc-scan-device") IF(${source} MATCHES "nfc-read-forum-tag3")