Cannot compile new empty project: undefined reference to `boost::system::generic_category()' error

I am setting up OpenFrameworks with CMake, and everything was going well until I cam across this error and have googled solutions for hours with no success:

C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: CMakeFiles\ofAppClionWin.dir/objects.a(main.cpp.obj): in function `_static_initialization_and_destruction_0':
C:/Developer/of_v0.11.0_msys2_release/libs/boost/include/boost/system/error_code.hpp:206: undefined reference to `boost::system::generic_category()'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/boost/include/boost/system/error_code.hpp:208: undefined reference to `boost::system::generic_category()'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/boost/include/boost/system/error_code.hpp:210: undefined reference to `boost::system::system_category()'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: CMakeFiles\ofAppClionWin.dir/objects.a(main.cpp.obj): in function `ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition':
C:/Developer/of_v0.11.0_msys2_release/libs/boost/include/boost/system/error_code.hpp:656: undefined reference to `boost::system::generic_category()'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/boost/include/boost/system/error_code.hpp:659: undefined reference to `boost::system::generic_category()'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: CMakeFiles\ofAppClionWin.dir/objects.a(main.cpp.obj): in function `ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei':
C:/Developer/of_v0.11.0_msys2_release/libs/boost/include/boost/system/error_code.hpp:686: undefined reference to `boost::system::generic_category()'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/boost/include/boost/system/error_code.hpp:689: undefined reference to `boost::system::generic_category()'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/boost/include/boost/system/error_code.hpp:701: undefined reference to `boost::system::generic_category()'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: CMakeFiles\ofAppClionWin.dir/objects.a(ofApp.cpp.obj):C:/Developer/of_v0.11.0_msys2_release/libs/boost/include/boost/system/error_code.hpp:206: more undefined references to `boost::system::generic_category()' follow
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: CMakeFiles\ofAppClionWin.dir/objects.a(ofApp.cpp.obj): in function `_static_initialization_and_destruction_0':
C:/Developer/of_v0.11.0_msys2_release/libs/boost/include/boost/system/error_code.hpp:210: undefined reference to `boost::system::system_category()'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x1e2e): undefined reference to `uriParseUriA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x1e75): undefined reference to `uriWindowsFilenameToUriStringA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x1e8d): undefined reference to `uriParseUriA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x1ef3): undefined reference to `uriFreeUriMembersA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x1f50): undefined reference to `uriFreeUriMembersA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x21a2): undefined reference to `uriParseUriA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x21e9): undefined reference to `uriWindowsFilenameToUriStringA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x2201): undefined reference to `uriParseUriA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x2267): undefined reference to `uriFreeUriMembersA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x22c4): undefined reference to `uriFreeUriMembersA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x25ac): undefined reference to `uriParseUriA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x25f3): undefined reference to `uriWindowsFilenameToUriStringA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x260b): undefined reference to `uriParseUriA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x2671): undefined reference to `uriFreeUriMembersA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofImage.o):ofImage.cpp:(.text+0x26ce): undefined reference to `uriFreeUriMembersA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x1953): undefined reference to `_imp__curl_global_init'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x19aa): undefined reference to `_imp__curl_easy_init'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x19b1): undefined reference to `_imp__curl_easy_cleanup'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x1f55): undefined reference to `_imp__curl_easy_setopt'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x2050): undefined reference to `_imp__curl_slist_append'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x2102): undefined reference to `_imp__curl_slist_append'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x2145): undefined reference to `_imp__curl_easy_setopt'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x21ba): undefined reference to `_imp__curl_easy_setopt'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x21d9): undefined reference to `_imp__curl_easy_setopt'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x21fa): undefined reference to `_imp__curl_easy_setopt'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x225a): undefined reference to `_imp__curl_easy_setopt'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x23a9): more undefined references to `_imp__curl_easy_setopt' follow
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x23ed): undefined reference to `_imp__curl_easy_perform'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x2443): undefined reference to `_imp__curl_easy_perform'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x2474): undefined reference to `_imp__curl_easy_getinfo'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x2491): undefined reference to `_imp__curl_easy_strerror'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofURLFileLoader.o):ofURLFileLoader.cpp:(.text+0x24ce): undefined reference to `_imp__curl_slist_free_all'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofUtils.o):ofUtils.cpp:(.text+0x3869): undefined reference to `uriParseUriA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofUtils.o):ofUtils.cpp:(.text+0x38fe): undefined reference to `uriFreeUriMembersA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofUtils.o):ofUtils.cpp:(.text+0x3911): undefined reference to `uriNormalizeSyntaxA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofUtils.o):ofUtils.cpp:(.text+0x395b): undefined reference to `uriToStringCharsRequiredA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofUtils.o):ofUtils.cpp:(.text+0x39a8): undefined reference to `uriToStringA'
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.2.0/../../../../i686-w64-mingw32/bin/ld.exe: C:/Developer/of_v0.11.0_msys2_release/libs/openFrameworksCompiled/lib/msys2/libopenFrameworks.a(ofUtils.o):ofUtils.cpp:(.text+0x39ee): undefined reference to `uriFreeUriMembersA'
collect2.exe: error: ld returned 1 exit status
mingw32-make[3]: *** [CMakeFiles\ofAppClionWin.dir\build.make:102: ofAppClionWin.exe] Error 1
mingw32-make[2]: *** [CMakeFiles\Makefile2:75: CMakeFiles/ofAppClionWin.dir/all] Error 2
mingw32-make[1]: *** [CMakeFiles\Makefile2:82: CMakeFiles/ofAppClionWin.dir/rule] Error 2
mingw32-make: *** [Makefile:117: ofAppClionWin] Error 2

I am using this repo from several years ago. It contains a basic empty app.

I had to configure and change a lot, but this error has gotten me stumped. From what I googled, this error doesn’t only occur with CMake.

Other Useful Info
Project is supposed to be compiling in i686-w64, not x64
OpenFrameworks v0.11.0
CMake v3.15
CLion v2019.2.5
MSYS2 MinGW32
Windows 10 x64

I did change the CMake files from the repo above as so:
CMakeLists.txt:

cmake_minimum_required(VERSION 3.15)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall")
project(ofAppClionWin)

set(OF_MAIN_DIR C:/Developer/of_v0.11.0_msys2_release)
# Format either vs/x64 or vs/ Win32 or msys2
set(FORMAT msys2)

find_package(PkgConfig REQUIRED)
include(includelist.cmake)
find_package(Boost COMPONENTS system thread filesystem REQUIRED)
pkg_search_module(CAIRO REQUIRED cairo)
pkg_search_module(ZLIB REQUIRED zlib)
pkg_search_module(GLEW REQUIRED glew)

set(SOURCE_FILES src/main.cpp src/ofApp.h src/ofApp.cpp)
add_executable(ofAppClionWin ${SOURCE_FILES})

IF(${FORMAT} MATCHES "msys2")
    configure_file(${FMODEX_DIR}/lib/${FORMAT}/fmodex.dll ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
ENDIF(${FORMAT} MATCHES "msys2")

includelist.cmake:

set(OF_INCLUDE_DIR ${OF_MAIN_DIR}/libs/openFrameworks)
include_directories(${OF_INCLUDE_DIR})
include_directories(${OF_INCLUDE_DIR}/gl)
include_directories(${OF_INCLUDE_DIR}/3d)
include_directories(${OF_INCLUDE_DIR}/app)
include_directories(${OF_INCLUDE_DIR}/communication)
include_directories(${OF_INCLUDE_DIR}/events)
include_directories(${OF_INCLUDE_DIR}/graphics)
include_directories(${OF_INCLUDE_DIR}/math)
include_directories(${OF_INCLUDE_DIR}/sound)
include_directories(${OF_INCLUDE_DIR}/types)
include_directories(${OF_INCLUDE_DIR}/utils)
include_directories(${OF_INCLUDE_DIR}/video)


set(BOOST_DIR ${OF_MAIN_DIR}/libs/boost)
set(FMODEX_DIR ${OF_MAIN_DIR}/libs/fmodex)
set(FREEIMAGE_DIR ${OF_MAIN_DIR}/libs/FreeImage)
set(FREETYPE_DIR ${OF_MAIN_DIR}/libs/Freetype)
set(GLFW_DIR ${OF_MAIN_DIR}/libs/glfw)
set(POCO_DIR ${OF_MAIN_DIR}/libs/poco)
set(QUICKTIME_DIR ${OF_MAIN_DIR}/libs/quicktime)
set(RTAUDIO_DIR ${OF_MAIN_DIR}/libs/rtAudio)
set(TESS2_DIR ${OF_MAIN_DIR}/libs/tess2)
set(UTF8CPP_DIR ${OF_MAIN_DIR}/libs/utf8)
set(VIDEOINPUT_DIR ${OF_MAIN_DIR}/libs/videoInput)
set(GLU_DIR ${OF_MAIN_DIR}/libs/glu)
set(GLM_DIR ${OF_MAIN_DIR}/libs/glm)
set(JSON_DIR ${OF_MAIN_DIR}/libs/json)
set(PUGIXML_DIR ${OF_MAIN_DIR}/libs/pugixml)
set(CAIRO_DIR ${OF_MAIN_DIR}/libs/cairo)


include_directories(${BOOST_DIR}/include)
include_directories(${FMODEX_DIR}/include)
include_directories(${FREEIMAGE_DIR}/include)
include_directories(${FREETYPE_DIR}/include)
include_directories(${GLFW_DIR}/include)
include_directories(${GLU_DIR}/include)
include_directories(${POCO_DIR}/include)
include_directories(${QUICKTIME_DIR}/include)
include_directories(${RTAUDIO_DIR}/include)
include_directories(${TESS2_DIR}/include)
include_directories(${UTF8CPP_DIR}/include)
include_directories(${VIDEOINPUT_DIR}/include)
include_directories(${GLM_DIR}/include)
include_directories(${JSON_DIR}/include)
include_directories(${PUGIXML_DIR}/include)
include_directories(${CAIRO_DIR}/include/cairo)


link_directories(${FMODEX_DIR}/lib/${FORMAT})
link_directories(${GLFW_DIR}/lib/${FORMAT})
link_directories(${RTAUDIO_DIR}/lib/${FORMAT})
link_directories(${TESS2_DIR}/lib/${FORMAT})
link_directories(${VIDEOINPUT_DIR}/lib/${FORMAT})


add_definitions(-DUSE_INTERNAL_BOOST_LIBRARY=0)

link_directories(${OF_MAIN_DIR}/libs/openFrameworksCompiled/lib/${FORMAT})

IF(${FORMAT} MATCHES "msys2")
    link_libraries(openFrameworks pthread fmodex fmodexL glfw3 rtaudio tess2 videoInput
            cairo z ssl crypto glew32 PocoNetSSL PocoNet PocoCrypto PocoUtil PocoXML PocoFoundation
            PocoZip PocoJSON PocoData PocoDataSQLite ksuser opengl32 gdi32 msimg32 glu32 dsound
            winmm strmiids uuid ole32 oleaut32 setupapi wsock32 ws2_32 Iphlpapi Comdlg32 freeimage
            freetype boost_filesystem-mt boost_system-mt
            )
ENDIF(${FORMAT} MATCHES "msys2")

This is my CMake log when I try to build the project
(From what I read the incorrect Boost version shouldn’t cause this to fail…)
CMake Project LOG:

"C:\Program Files\JetBrains\CLion 2019.2.5\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" C:\Users\jcmem\Downloads\openFrameworks-Clion-Windows-master\ofAppClionWin
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: C:/msys64/mingw32/bin/gcc.exe
-- Check for working C compiler: C:/msys64/mingw32/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/msys64/mingw32/bin/g++.exe
-- Check for working CXX compiler: C:/msys64/mingw32/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: C:/msys64/mingw32/bin/pkg-config.exe (found version "0.29.2") 
CMake Warning at C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1144 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1266 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1904 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:12 (find_package)


CMake Warning at C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1144 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1266 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1904 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:12 (find_package)


CMake Warning at C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1144 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1266 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1904 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:12 (find_package)


CMake Warning at C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1144 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1266 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1904 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:12 (find_package)


CMake Warning at C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1144 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1266 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1904 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:12 (find_package)


CMake Warning at C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1144 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1266 (_Boost_COMPONENT_DEPENDENCIES)
  C:/Program Files/JetBrains/CLion 2019.2.5/bin/cmake/win/share/cmake-3.15/Modules/FindBoost.cmake:1904 (_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:12 (find_package)


-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found Boost: C:/msys64/mingw32/include (found version "1.72.0") found components:  system thread filesystem chrono date_time atomic 
-- Checking for one of the modules 'cairo'
-- Checking for one of the modules 'zlib'
-- Checking for one of the modules 'glew'
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/jcmem/Downloads/openFrameworks-Clion-Windows-master/ofAppClionWin/cmake-build-debug

If you have any feedback or ideas, please share!

Hello,

MSYS2 uses system install libraries for most libraries (boost, cairo, opencv,…) and configure them with pkgconfig. Some (fmodex, …) are still in the OF installation dir
From your includelist.cmake, you seem to search all libs in your OF installation dir (OF_MAIN_DIR).
Can you check if changing to system libs solve your problem ?