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:
leper
2019-01-09 00:55:19 +01:00
parent 7c68e09d77
commit 542711f862
4 changed files with 4 additions and 26 deletions

View File

@ -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)