Prechádzať zdrojové kódy

fix for linux linking order dependencies

Former-commit-id: 5222e169a2b0d32bfa4818039994cddbc7e9a4e9
Daniele Panozzo 10 rokov pred
rodič
commit
c904ab024f
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      tutorial/CMakeLists.shared

+ 5 - 0
tutorial/CMakeLists.shared

@@ -109,5 +109,10 @@ set(SHARED_LIBRARIES
 #		${GLFW_LIBRARIES}
 )
 
+# This is necessary to work around the static linking order dependencies on linux
+if(UNIX AND NOT APPLE)
+  set(SHARED_LIBRARIES ${SHARED_LIBRARIES} ${SHARED_LIBRARIES})
+endif(UNIX AND NOT APPLE)
+
 #message(FATAL_ERROR ${SHARED_LIBRARIES})
 endif(NOT CMAKELISTS_SHARED_INCLUDED)