# Basic CMake command question - set(+qca\_fw)

**URL:** https://discourse.cmake.org/t/basic-cmake-command-question-set-qca-fw/6484
**Category:** Code
**Tags:** os:windows
**Created:** [September 14, 2022, 3:03am UTC](https://discourse.cmake.org/t/basic-cmake-command-question-set-qca-fw/6484 "2022-09-14T03:03:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Paul](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@Paul](https://discourse.cmake.org/u/Paul)
#### Post date: [September 14, 2022, 3:03am UTC](https://discourse.cmake.org/t/basic-cmake-command-question-set-qca-fw/6484/1 "2022-09-14T03:03:50Z")

</div>

I am trying to build QGIS from GitHUb source for windows, using QtCreator and CMake.

The FindQCA.cmake includes:

set(\_qca\_fw)

if(QCA\_LIBRARY MATCHES “/qca.\*\.framework”)

string(REGEX REPLACE “^(._/qca._\.framework).\*$” “[\1](file://1)” \_qca\_fw “${QCA\_LIBRARY}”)

endif()

But I am new to Cmake, and don’t understand what these few lines of code are trying to achieve.

Thanks.

---

<div class="post-metadata">

### Author: ![hsattler](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/h/59ef9b/32.png) [@hsattler](https://discourse.cmake.org/u/hsattler)
#### Post date: [September 14, 2022, 7:45am UTC](https://discourse.cmake.org/t/basic-cmake-command-question-set-qca-fw/6484/2 "2022-09-14T07:45:11Z")

</div>

They try to put the path to the qca framework file into a Wiki style link format. Framework files are used on MacOS.

No idea why the 2 regexes don’t match (the second one misses a \*)

---

<div class="post-metadata">

### Author: ![Paul](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@Paul](https://discourse.cmake.org/u/Paul)
#### Post date: [September 14, 2022, 7:55am UTC](https://discourse.cmake.org/t/basic-cmake-command-question-set-qca-fw/6484/3 "2022-09-14T07:55:49Z")

</div>

Ok thanks. So this section is Apple OS specific? As I am building for windows, it is therefore not relevant? And the cmake should really have a test to only run these lines of code, if one is building for Apple, it seems?
