Paul
(Paul Burns)
September 14, 2022, 3:03am
1
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.
hsattler
(Hendrik Sattler)
September 14, 2022, 7:45am
2
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 *)
Paul
(Paul Burns)
September 14, 2022, 7:55am
3
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?