# PV-compilation problems with libSM and uuid

**URL:** https://discourse.paraview.org/t/pv-compilation-problems-with-libsm-and-uuid/884
**Category:** ParaView Support
**Created:** [November 12, 2018, 2:35pm UTC](https://discourse.paraview.org/t/pv-compilation-problems-with-libsm-and-uuid/884 "2018-11-12T14:35:55Z")
**Posts on this page:** 1
**Showing post:** 19

<div class="post-metadata">

### Author: ![kai1337](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/f1d935/32.png) [@kai1337](https://discourse.paraview.org/u/kai1337)
#### Post date: [May 21, 2019, 7:35am UTC](https://discourse.paraview.org/t/pv-compilation-problems-with-libsm-and-uuid/884/19 "2019-05-21T07:35:20Z")

</div>

> [@ben.boeckel](#):
>
> Try adding `-luuid` to `X11_SM_LIBRARY` . I don’t know if it should take a space or semicolon, so I’d try both to see which works.

Similar to what Ben said I think one just needs to do this in the CMake-way. Therefore, add the following line to the file ParaView-v\*/CMakeLists.txt:  
`SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -luuid")`  
I’m not sure where to put it, I just placed it before the first `include(...)` statement. Solved the issue at least for me.

---

_[View the full topic](https://discourse.paraview.org/t/pv-compilation-problems-with-libsm-and-uuid/884)._
