mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-25 16:30:05 +00:00
[CMake] Fix set_output_directory to do nothing if *_OUTPUT_INTDIR was not given.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e6b44070cf
commit
a84cb68aad
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user