mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-08 03:18:58 +00:00
VTK-m Properly computes frameworks on mojave / big sur
Fixes #587 This works around issues in CMake 3.19 and lower which aren't aware of the new 'tbd' files that should be used for GLUT
This commit is contained in:
parent
1323dfeca6
commit
f5b776b747
@ -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