mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-09 22:00:06 +00:00
Compile osdutil with -fPIC for correct linking in Presto.
This commit is contained in:
parent
052a2197b6
commit
feb74f51f0
@ -68,6 +68,20 @@ target_link_libraries(
|
||||
|
||||
set(DOXY_HEADER_FILES ${PUBLIC_HEADER_FILES})
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# platform dependent tweaks
|
||||
if(APPLE OR UNIX)
|
||||
set(PLATFORM_COMPILE_FLAGS
|
||||
-fPIC
|
||||
)
|
||||
elseif(WIN32)
|
||||
|
||||
endif()
|
||||
|
||||
add_definitions(
|
||||
${PLATFORM_COMPILE_FLAGS}
|
||||
)
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# OpenCL code & dependencies
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user