Skip to content

Commit

Permalink
Fix cmake warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
LudovicRousseau committed Feb 16, 2024
1 parent c6657c7 commit df0a3be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit df0a3be

Please sign in to comment.