Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
e739ef7b
Commit
e739ef7b
authored
Feb 08, 2016
by
James Bigler
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FindCUDA: Only warn about non-existent dependency files in verbose mode
parent
81ecc726
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
Modules/FindCUDA/make2cmake.cmake
Modules/FindCUDA/make2cmake.cmake
+13
-1
Modules/FindCUDA/run_nvcc.cmake
Modules/FindCUDA/run_nvcc.cmake
+1
-0
No files found.
Modules/FindCUDA/make2cmake.cmake
View file @
e739ef7b
...
...
@@ -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
()
...
...
Modules/FindCUDA/run_nvcc.cmake
View file @
e739ef7b
...
...
@@ -207,6 +207,7 @@ cuda_execute_process(
COMMAND
"
${
CMAKE_COMMAND
}
"
-D
"input_file:FILEPATH=
${
NVCC_generated_dependency_file
}
"
-D
"output_file:FILEPATH=
${
cmake_dependency_file
}
.tmp"
-D
"verbose=
${
verbose
}
"
-P
"
${
CUDA_make2cmake
}
"
)
...
...
Brad King
@brad.king
mentioned in commit
16f83f64
·
Feb 09, 2016
mentioned in commit
16f83f64
mentioned in commit 16f83f648a1ef75a66a5b07deec55c6e6e65b0d3
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment