Explorar o código

Fix -fPIC issue.

Jérémie Dumas %!s(int64=6) %!d(string=hai) anos
pai
achega
7d2a958ab3
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      cmake/libigl.cmake

+ 2 - 4
cmake/libigl.cmake

@@ -83,10 +83,8 @@ if(MSVC)
   endif()
   endif()
 endif()
 endif()
 
 
-if(BUILD_SHARED_LIBS)
-  # Generate position independent code
-  set_target_properties(igl_common PROPERTIES INTERFACE_POSITION_INDEPENDENT_CODE ON)
-endif()
+# Generate position independent code
+set_target_properties(igl_common PROPERTIES INTERFACE_POSITION_INDEPENDENT_CODE ON)
 
 
 # Eigen
 # Eigen
 if(TARGET Eigen3::Eigen)
 if(TARGET Eigen3::Eigen)