plyght's own C++ browser for macOS
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

up

plyght e850d34b 2634b740

+39 -21
+9
.github/workflows/release.yml
··· 192 192 - name: Configure CMake 193 193 run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_OSX_DEPLOYMENT_TARGET=26.0 194 194 195 + - name: Print linker inputs 196 + run: | 197 + if [ -f build/CMakeFiles/pocb.dir/link.txt ]; then 198 + cat build/CMakeFiles/pocb.dir/link.txt 199 + if grep -n "AGL" build/CMakeFiles/pocb.dir/link.txt; then 200 + exit 1 201 + fi 202 + fi 203 + 195 204 - name: Build app bundle 196 205 run: cmake --build build --config Release --parallel 197 206
+30 -21
CMakeLists.txt
··· 15 15 if(NOT TARGET ${target}) 16 16 return() 17 17 endif() 18 - get_target_property(_links ${target} INTERFACE_LINK_LIBRARIES) 19 - if(NOT _links) 20 - return() 21 - endif() 22 - set(_clean_links) 23 - list(LENGTH _links _link_count) 24 - set(_link_index 0) 25 - while(_link_index LESS _link_count) 26 - list(GET _links ${_link_index} _link) 27 - math(EXPR _next_index "${_link_index} + 1") 28 - if(_link STREQUAL "-framework" AND _next_index LESS _link_count) 29 - list(GET _links ${_next_index} _next_link) 30 - if(_next_link STREQUAL "AGL") 31 - math(EXPR _link_index "${_link_index} + 2") 32 - continue() 18 + foreach(_property IN ITEMS INTERFACE_LINK_LIBRARIES INTERFACE_LINK_OPTIONS INTERFACE_LINK_LIBRARIES_DIRECT INTERFACE_LINK_LIBRARIES_DIRECT_EXCLUDE) 19 + get_target_property(_links ${target} ${_property}) 20 + if(NOT _links) 21 + continue() 22 + endif() 23 + set(_clean_links) 24 + list(LENGTH _links _link_count) 25 + set(_link_index 0) 26 + while(_link_index LESS _link_count) 27 + list(GET _links ${_link_index} _link) 28 + math(EXPR _next_index "${_link_index} + 1") 29 + if(_link STREQUAL "-framework" AND _next_index LESS _link_count) 30 + list(GET _links ${_next_index} _next_link) 31 + if(_next_link STREQUAL "AGL") 32 + math(EXPR _link_index "${_link_index} + 2") 33 + continue() 34 + endif() 35 + endif() 36 + if(NOT _link STREQUAL "AGL" AND NOT _link STREQUAL "-framework AGL" AND NOT _link MATCHES "/AGL\\.framework/?$") 37 + list(APPEND _clean_links "${_link}") 33 38 endif() 34 - endif() 35 - if(NOT _link STREQUAL "AGL" AND NOT _link STREQUAL "-framework AGL" AND NOT _link MATCHES "/AGL\\.framework/?$") 36 - list(APPEND _clean_links "${_link}") 39 + math(EXPR _link_index "${_link_index} + 1") 40 + endwhile() 41 + set_target_properties(${target} PROPERTIES ${_property} "${_clean_links}") 42 + endforeach() 43 + foreach(_property IN ITEMS IMPORTED_LOCATION IMPORTED_LOCATION_RELEASE IMPORTED_LOCATION_RELWITHDEBINFO IMPORTED_LOCATION_MINSIZEREL IMPORTED_LOCATION_DEBUG) 44 + get_target_property(_location ${target} ${_property}) 45 + if(_location MATCHES "/AGL\\.framework/?$") 46 + find_library(_opengl_framework OpenGL REQUIRED) 47 + set_target_properties(${target} PROPERTIES ${_property} "${_opengl_framework}") 37 48 endif() 38 - math(EXPR _link_index "${_link_index} + 1") 39 - endwhile() 40 - set_target_properties(${target} PROPERTIES INTERFACE_LINK_LIBRARIES "${_clean_links}") 49 + endforeach() 41 50 endfunction() 42 51 43 52 remove_agl_framework_from_target(WrapOpenGL::WrapOpenGL)