projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ba3a64
)
[CMake] Fix set_output_directory to do nothing if *_OUTPUT_INTDIR was not given.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 4 Jul 2014 04:23:15 +0000
(
04:23
+0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 4 Jul 2014 04:23:15 +0000
(
04:23
+0000)
llvm-svn: 212313
llvm/cmake/modules/AddLLVM.cmake
patch
|
blob
|
history
diff --git
a/llvm/cmake/modules/AddLLVM.cmake
b/llvm/cmake/modules/AddLLVM.cmake
index
69ffa5b
..
4288bac
100644
(file)
--- a/
llvm/cmake/modules/AddLLVM.cmake
+++ b/
llvm/cmake/modules/AddLLVM.cmake
@@
-150,6
+150,11
@@
endfunction(add_dead_strip)
# Note: Don't set variables CMAKE_*_OUTPUT_DIRECTORY any more,
# or a certain builder, for eaxample, msbuild.exe, would be confused.
function(set_output_directory target bindir libdir)
+ # Do nothing if *_OUTPUT_INTDIR is empty.
+ if("${bindir}" STREQUAL "")
+ return()
+ endif()
+
if(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
foreach(build_mode ${CMAKE_CONFIGURATION_TYPES})
string(TOUPPER "${build_mode}" CONFIG_SUFFIX)