Skip to content
Snippets Groups Projects
Commit b3da4060 authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Add a compiler flag for windows compilers that have an issue with large...

Add a compiler flag for windows compilers that have an issue with large objects that are generated by boost::python's template code. Re #1881
parent ac31bf86
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,9 @@ set_property ( TARGET PythonAPI PROPERTY FOLDER "Framework" )
# Library name needs to end in .pyd for Windows
if ( WIN32 )
set_target_properties ( PythonAPI PROPERTIES SUFFIX .pyd )
# Intensive use of templated libaries can cause large objects to be generated. These require
# an additional flag in MSVC.
set_target_properties ( PythonAPI COMPILE_FLAGS "/bigobj" )
endif ()
# Debug python library expects imported module names to end in _d
if ( PYTHON_DEBUG_LIBRARY )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment