Skip to content

CMake: ParaView incorrectly places LDFLAGS behind LINKER:SHELL: prefix

In ParaViewCompilerExtraFlags, this line sets INTERFACE_LINK_OPTIONS to:

"LINKER:SHELL:${PARAVIEW_EXTRA_SHARED_LINKER_FLAGS} -lc ${CMAKE_SHARED_LINKER_FLAGS}"

However, CMake initializes CMAKE_SHARED_LINKER_FLAGS from the LDFLAGS environment variable, which can contain -Wl, flags. It does not make sense to specify LINKER:SHELL:-Wl, because that tells CMake to pass -Wl to ld.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information