Commit 5b41812a authored by Marcus D. Hanwell's avatar Marcus D. Hanwell

Ensure we never auto initialize anything twice

This will cause duplicate symbol declarations and a compile failure.

Change-Id: I765db8ce0abf2f11770d42b979a0eaa4ab3f83f9
parent 667ac850
......@@ -67,6 +67,7 @@ macro(vtk_module_config ns)
list(SORT _${ns}_AUTOINIT) # Deterministic order.
foreach(mod ${_${ns}_AUTOINIT})
list(SORT _${ns}_AUTOINIT_${mod}) # Deterministic order.
list(REMOVE_DUPLICATES _${ns}_AUTOINIT_${mod})
list(LENGTH _${ns}_AUTOINIT_${mod} _ai_len)
string(REPLACE ";" "," _ai "${_ai_len}(${_${ns}_AUTOINIT_${mod}})")
if(${_ai_len} GREATER 1 AND "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment