Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1192)

Issue 1860044: build OSL on systems without LLVM (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by clifford.stein
Modified:
13 years, 3 months ago
Reviewers:
CC:
osl-dev_googlegroups.com, dev-osl_imageworks.com
Base URL:
http://openshadinglanguage.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This fixes a minor bug so that OSL builds on systems without LLVM installed.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
src/liboslexec/CMakeLists.txt View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 2
clifford.stein
13 years, 9 months ago (2010-07-23 21:35:43 UTC) #1
lg_imageworks.com
13 years, 9 months ago (2010-07-23 21:43:10 UTC) #2
LGTM

On Jul 23, 2010, at 2:35 PM, <clifford.stein@gmail.com> wrote:

> Reviewers: ,
> 
> Description:
> This fixes a minor bug so that OSL builds on systems without LLVM
> installed.
> 
> Please review this at http://codereview.appspot.com/1860044/show
> 
> Affected files:
>   src/liboslexec/CMakeLists.txt
> 
> 
> Index: src/liboslexec/CMakeLists.txt
> ===================================================================
> --- src/liboslexec/CMakeLists.txt	(revision 786)
> +++ src/liboslexec/CMakeLists.txt	(working copy)
> @@ -68,7 +68,10 @@
>  endif ()
> 
>  ADD_LIBRARY ( oslexec SHARED ${liboslexec_srcs} )
> -TARGET_LINK_LIBRARIES ( oslexec oslcomp ${OPENIMAGEIO_LIBRARY}  
> ${Boost_LIBRARIES} ${CMAKE_DL_LIBS} ${LLVM_LIBRARY})
> +TARGET_LINK_LIBRARIES ( oslexec oslcomp ${OPENIMAGEIO_LIBRARY}  
> ${Boost_LIBRARIES} ${CMAKE_DL_LIBS} )
> +if (LLVM_FOUND)
> +    TARGET_LINK_LIBRARIES ( oslexec ${LLVM_LIBRARY} )
> +endif()
>  LINK_ILMBASE ( oslexec )
> 
>  INSTALL ( TARGETS oslexec LIBRARY DESTINATION lib )
> 
> 
> 

--
Larry Gritz
lg@imageworks.com




Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b