From a75c4a11d3c555f4d3bed1ea1f70bb29fe49e99c Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 21 Dec 2024 17:06:09 -0600 Subject: [PATCH] [nfde] Address CMake warning, remove unwanted logging --- deps/nfde/CMakeLists.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/deps/nfde/CMakeLists.txt b/deps/nfde/CMakeLists.txt index bdaa8de1..1c4bf69a 100644 --- a/deps/nfde/CMakeLists.txt +++ b/deps/nfde/CMakeLists.txt @@ -10,7 +10,11 @@ if(NOT DEFINED BUILD_SHARED_LIBS) option(BUILD_SHARED_LIBS "Build a shared library instead of static" OFF) endif() option(NFD_BUILD_TESTS "Build tests for nfd" ${nfd_ROOT_PROJECT}) -option(NFD_INSTALL "Generate install target for nfd" ${nfd_ROOT_PROJECT}) +# DrinkingTea: begin +if(NOT DEFINED NFD_INSTALL) + option(NFD_INSTALL "Generate install target for nfd" ${nfd_ROOT_PROJECT}) +endif() +# DrinkingTea: end set(nfd_PLATFORM Undefined) if(WIN32) @@ -21,7 +25,9 @@ elseif(UNIX AND NOT APPLE) set(nfd_PLATFORM PLATFORM_UNIX) endif() -message("nfd Platform: ${nfd_PLATFORM}") +# DrinkingTea: begin +#message("nfd Platform: ${nfd_PLATFORM}") +# DrinkingTea: end set(nfd_COMPILER Undefined) if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC") @@ -33,7 +39,9 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "C set(nfd_COMPILER COMPILER_GNU) endif() -message("nfd Compiler: ${nfd_COMPILER}") +# DrinkingTea: begin +#message("nfd Compiler: ${nfd_COMPILER}") +# DrinkingTea: end # Use latest C++ by default (should be the best one), but let user override it if(NOT DEFINED CMAKE_CXX_STANDARD)