# cmake generates compiler options not supported

**URL:** https://discourse.cmake.org/t/cmake-generates-compiler-options-not-supported/2391
**Category:** Usage
**Created:** [December 17, 2020, 3:01pm UTC](https://discourse.cmake.org/t/cmake-generates-compiler-options-not-supported/2391 "2020-12-17T15:01:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jfavre](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jfavre](https://discourse.cmake.org/u/jfavre)
#### Post date: [December 17, 2020, 3:01pm UTC](https://discourse.cmake.org/t/cmake-generates-compiler-options-not-supported/2391/1 "2020-12-17T15:01:32Z")

</div>

While compiling ParaView 5.9, my cmake (v3.19.2) generates compilation options which my compiler does not support. How can I prevent that?

> cd /run/user/1100/ParaView/ParaViewBuild/VTK/Wrapping/Python && /scratch/e1000/jfavre/cmake-build/bin/cmake -E cmake\_link\_script CMakeFiles/pvtkpython.dir/link.txt --verbose=1  
> /opt/cray/pe/craype/2.7.2/bin/CC -O2 -g -DNDEBUG -Xlinker --no-as-needed -Xlinker --unresolved-symbols=ignore-in-shared-libs CMakeFiles/pvtkpython.dir/vtkPythonAppInit.cxx.o -o …/…/…/bin/pvtkpython -Wl,-rpath,“$ORIGIN/…/lib64:/opt/cray/pe/python/3.8.5.0/lib” …/…/…/lib64/libvtkWrappingPythonCore3.8-pv5.9.so.5.9 …/…/…/lib64/libvtkPythonInterpreter-pv5.9.so.5.9 …/…/…/lib64/libvtkParallelMPI-pv5.9.so.5.9 /opt/cray/pe/python/3.8.5.0/lib/libpython3.8.so …/…/…/lib64/libvtkParallelCore-pv5.9.so.5.9 …/…/…/lib64/libvtkCommonCore-pv5.9.so.5.9 …/…/…/lib64/libvtksys-pv5.9.so.5.9 -ldl -Wl,-rpath-link,/run/user/1100/ParaView/ParaViewBuild/lib64  
> clang-10: error: unsupported option ‘–unresolved-symbols=ignore-in-shared-libs’

> CMAKE\_CXX\_COMPILER:FILEPATH=/opt/cray/pe/craype/2.7.2/bin/CC  
> CMAKE\_CXX\_COMPILER\_AR:FILEPATH=/opt/cray/pe/cce/10.0.4/cce-clang/x86\_64/bin/llvm-ar  
> CMAKE\_CXX\_COMPILER\_RANLIB:FILEPATH=/opt/cray/pe/cce/10.0.4/cce-clang/x86\_64/bin/llvm-ranlib

TIA

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [December 17, 2020, 3:16pm UTC](https://discourse.cmake.org/t/cmake-generates-compiler-options-not-supported/2391/2 "2020-12-17T15:16:09Z")

</div>

Please file an issue on VTK’s issue tracker: [https://gitlab.kitware.com/vtk/vtk/-/issues](https://gitlab.kitware.com/vtk/vtk/-/issues)

I guess we’re a bit greedy about adding that flag.

Cc: @utkarsh.ayachit @cory.quammen Probably something to look at for 5.9.0.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [December 17, 2020, 3:36pm UTC](https://discourse.cmake.org/t/cmake-generates-compiler-options-not-supported/2391/3 "2020-12-17T15:36:46Z")

</div>

I have a candidate fix here: [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/7482](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7482)
