Răsfoiți Sursa

Merge pull request #171 from dwimsey/feature/python-with-static-librocket

Minor fix to the way python modules are built, this prevents the build process from linking the python rocket libraries with any executables as they are meant to always be loaded dynamically at runtime.
David Wimsey 11 ani în urmă
părinte
comite
6f17a257a6
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Build/CMakeLists.txt

+ 1 - 1
Build/CMakeLists.txt

@@ -181,7 +181,7 @@ if(BUILD_PYTHON_BINDINGS)
     foreach(library ${LIBRARIES})
     foreach(library ${LIBRARIES})
         set(NAME _rocket${library})
         set(NAME _rocket${library})
 
 
-        add_library(${NAME} ${Py${library}_SRC_FILES}
+        add_library(${NAME} MODULE ${Py${library}_SRC_FILES}
                             ${Py${library}_HDR_FILES}
                             ${Py${library}_HDR_FILES}
                             ${Py${library}_PUB_HDR_FILES}
                             ${Py${library}_PUB_HDR_FILES}
         )
         )