* Don't create cleanup targets when using a VS generator

svn path=/trunk/; revision=52194
This commit is contained in:
Amine Khaldi 2011-06-11 18:12:48 +00:00
parent 56c66ff1fd
commit a0c90088eb

View file

@ -190,15 +190,17 @@ function(add_clean_target target)
COMMENT "Cleaning ${target}") COMMENT "Cleaning ${target}")
endfunction() endfunction()
function(add_library name) if(NOT MSVC_IDE)
_add_library(${name} ${ARGN}) function(add_library name)
add_clean_target(${name}) _add_library(${name} ${ARGN})
endfunction() add_clean_target(${name})
endfunction()
function(add_executable name) function(add_executable name)
_add_executable(${name} ${ARGN}) _add_executable(${name} ${ARGN})
add_clean_target(${name}) add_clean_target(${name})
endfunction() endfunction()
endif()
if(WIN32) if(WIN32)
macro(to_win_path _cmake_path _native_path) macro(to_win_path _cmake_path _native_path)