Link with -fPIC when using Clang.
Remove the need for a few workarounds by handling this in just one place.
This commit is contained in:
@ -15,9 +15,3 @@ SET(BC6H_SRCS
|
||||
|
||||
ADD_LIBRARY(bc6h STATIC ${BC6H_SRCS})
|
||||
TARGET_LINK_LIBRARIES(bc6h nvcore nvmath)
|
||||
|
||||
IF(NOT WIN32)
|
||||
IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
SET_TARGET_PROPERTIES(bc6h PROPERTIES COMPILE_FLAGS -fPIC)
|
||||
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
ENDIF(NOT WIN32)
|
||||
|
Reference in New Issue
Block a user