Browse Source

Minor fix to ensure python libs are always built as shared objects or DLLs regardless of BUILD_SHARED_LIBS setting to CMake

David Wimsey 11 years ago
parent
commit
f5f9bd8059
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Build/CMakeLists.txt

+ 1 - 1
Build/CMakeLists.txt

@@ -153,7 +153,7 @@ if(BUILD_PYTHON_BINDINGS)
     foreach(library ${LIBRARIES})
         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}_PUB_HDR_FILES}
         )