summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA/make2cmake.cmake
diff options
context:
space:
mode:
authorJames Bigler <jamesbigler@gmail.com>2016-02-08 20:38:28 (GMT)
committerJames Bigler <jamesbigler@gmail.com>2016-02-08 20:38:28 (GMT)
commite739ef7b66f0a14db5955316916204034104cad4 (patch)
tree0cd8bdc4b5f9c0ffd97fae7e8ad802c994ac5b8b /Modules/FindCUDA/make2cmake.cmake
parent81ecc7263754ad96e3aa77ec4d60b72c49cc1409 (diff)
downloadCMake-e739ef7b66f0a14db5955316916204034104cad4.zip
CMake-e739ef7b66f0a14db5955316916204034104cad4.tar.gz
CMake-e739ef7b66f0a14db5955316916204034104cad4.tar.bz2
FindCUDA: Only warn about non-existent dependency files in verbose mode
Diffstat (limited to 'Modules/FindCUDA/make2cmake.cmake')
-rw-r--r--Modules/FindCUDA/make2cmake.cmake14
1 files changed, 13 insertions, 1 deletions
diff --git a/Modules/FindCUDA/make2cmake.cmake b/Modules/FindCUDA/make2cmake.cmake
index b841f3b..802f93a 100644
--- a/Modules/FindCUDA/make2cmake.cmake
+++ b/Modules/FindCUDA/make2cmake.cmake
@@ -35,6 +35,16 @@
# This converts a file written in makefile syntax into one that can be included
# by CMake.
+# Input variables
+#
+# verbose:BOOL=<> OFF: Be as quiet as possible (default)
+# ON : Extra output
+#
+# input_file:FILEPATH=<> Path to dependecy file in makefile format
+#
+# output_file:FILEPATH=<> Path to file with dependencies in CMake readable variable
+#
+
file(READ ${input_file} depend_text)
if (NOT "${depend_text}" STREQUAL "")
@@ -62,7 +72,9 @@ if (NOT "${depend_text}" STREQUAL "")
if (EXISTS "/${file}")
set(file "/${file}")
else()
- message(WARNING " Removing non-existent dependency file: ${file}")
+ if(verbose)
+ message(WARNING " Removing non-existent dependency file: ${file}")
+ endif()
set(file "")
endif()
endif()