Merge topic 'workaround_bigsur_framework_issues'
f5b776b74 VTK-m Properly computes frameworks on mojave / big sur Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Nick Thompson <nathompson7@protonmail.com> Merge-request: !2352
This commit is contained in:
commit
91f0bfa51c
@ -61,6 +61,20 @@ function(vtkm_find_gl)
|
||||
|
||||
if(DO_GLUT_FIND AND NOT TARGET GLUT::GLUT)
|
||||
find_package(GLUT ${GLUT_REQUIRED} ${QUIETLY})
|
||||
|
||||
if(APPLE AND CMAKE_VERSION VERSION_LESS 3.19.2)
|
||||
get_target_property(lib_path GLUT::GLUT IMPORTED_LOCATION)
|
||||
if(EXISTS "${lib_path}.tbd")
|
||||
set_target_properties(GLUT::GLUT PROPERTIES
|
||||
IMPORTED_LOCATION "${lib_path}.tbd")
|
||||
endif()
|
||||
|
||||
get_target_property(lib_path GLUT::Cocoa IMPORTED_LOCATION)
|
||||
if(EXISTS "${lib_path}.tbd")
|
||||
set_target_properties(GLUT::Cocoa PROPERTIES
|
||||
IMPORTED_LOCATION "${lib_path}.tbd")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
endfunction()
|
||||
|
Loading…
Reference in New Issue
Block a user