[llvm] r225319 - cmake: Add 'examples' target

Aaron Ballman aaron at aaronballman.com
Wed Jan 7 05:50:40 PST 2015


When I fetched this morning and re-ran CMAKE for Visual Studio 2013, I
got a new error when opening the resulting solution: "The solution
already contains an item named 'examples'.

Also, I now see a top-level project named "Kaleidiscioe" that should
probably live somewhere other than the top level.

~Aaron

On Tue, Jan 6, 2015 at 6:42 PM, Duncan P. N. Exon Smith
<dexonsmith at apple.com> wrote:
> Author: dexonsmith
> Date: Tue Jan  6 17:42:49 2015
> New Revision: 225319
>
> URL: http://llvm.org/viewvc/llvm-project?rev=225319&view=rev
> Log:
> cmake: Add 'examples' target
>
> Modified:
>     llvm/trunk/cmake/modules/AddLLVM.cmake
>
> Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=225319&r1=225318&r2=225319&view=diff
> ==============================================================================
> --- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
> +++ llvm/trunk/cmake/modules/AddLLVM.cmake Tue Jan  6 17:42:49 2015
> @@ -513,6 +513,12 @@ macro(add_llvm_example name)
>      install(TARGETS ${name} RUNTIME DESTINATION examples)
>    endif()
>    set_target_properties(${name} PROPERTIES FOLDER "Examples")
> +
> +  if(NOT TARGET examples)
> +    add_custom_target(examples ${name})
> +  else()
> +    add_dependencies(examples ${name})
> +  endif()
>  endmacro(add_llvm_example name)
>
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list