|
6 | 6 | #
|
7 | 7 | # This file is provided under the "BSD-style" License
|
8 | 8 |
|
9 |
| -if (CMAKE_VERSION VERSION_LESS 3.12) |
10 |
| - get_property(old_find_library_use_lib64_paths GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS) |
11 |
| - set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS TRUE) |
12 |
| -endif() |
13 |
| - |
14 | 9 | find_package(OpenSceneGraph 3.0 QUIET
|
15 | 10 | COMPONENTS osg osgViewer osgManipulator osgGA osgDB osgShadow osgUtil
|
16 | 11 | )
|
17 | 12 |
|
18 |
| -if (CMAKE_VERSION VERSION_LESS 3.12) |
19 |
| - set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ${old_find_library_use_lib64_paths}) |
20 |
| -endif() |
21 |
| - |
22 | 13 | # It seems that OPENSCENEGRAPH_FOUND will inadvertently get set to true when
|
23 | 14 | # OpenThreads is found, even if OpenSceneGraph is not installed. This is quite
|
24 | 15 | # possibly a bug in OSG's cmake configuration file. For now, it seems that
|
@@ -56,13 +47,6 @@ endif()
|
56 | 47 | # where the system that DART is built and where the system that consumes DART.
|
57 | 48 | if((OPENSCENEGRAPH_FOUND OR OpenSceneGraph_FOUND) AND NOT TARGET osg::osg)
|
58 | 49 | add_library(osg::osg INTERFACE IMPORTED)
|
59 |
| - if(CMAKE_VERSION VERSION_LESS 3.11) |
60 |
| - set_target_properties(osg::osg PROPERTIES |
61 |
| - INTERFACE_INCLUDE_DIRECTORIES "${OPENSCENEGRAPH_INCLUDE_DIRS}" |
62 |
| - INTERFACE_LINK_LIBRARIES "${OPENSCENEGRAPH_LIBRARIES}" |
63 |
| - ) |
64 |
| - else() |
65 |
| - target_include_directories(osg::osg INTERFACE ${OPENSCENEGRAPH_INCLUDE_DIRS}) |
66 |
| - target_link_libraries(osg::osg INTERFACE ${OPENSCENEGRAPH_LIBRARIES}) |
67 |
| - endif() |
| 50 | + target_include_directories(osg::osg INTERFACE ${OPENSCENEGRAPH_INCLUDE_DIRS}) |
| 51 | + target_link_libraries(osg::osg INTERFACE ${OPENSCENEGRAPH_LIBRARIES}) |
68 | 52 | endif()
|
0 commit comments