File tree Expand file tree Collapse file tree 1 file changed +3
-25
lines changed Expand file tree Collapse file tree 1 file changed +3
-25
lines changed Original file line number Diff line number Diff line change @@ -48,33 +48,11 @@ FIND_LIBRARY(DRACO_LIBRARY NAMES ${DRACO_NAMES}
48
48
49
49
INCLUDE (FindPackageHandleStandardArgs )
50
50
51
- IF (MSVC )
52
- # VisualStudio needs a debug version
53
- FIND_LIBRARY (DRACO_LIBRARY_DEBUG NAMES ${DRACO_DBG_NAMES}
54
- PATHS
55
- $ENV{DRACO_HOME}
56
- $ENV{EXTERNLIBS} /DRACO
57
- PATH_SUFFIXES lib lib64
58
- DOC "DRACO - Library (Debug)"
59
- )
51
+ SET (DRACO_LIBRARIES ${DRACO_LIBRARY} )
60
52
61
- IF (DRACO_LIBRARY_DEBUG AND DRACO_LIBRARY )
62
- SET (DRACO_LIBRARIES optimized ${DRACO_LIBRARY} debug ${DRACO_LIBRARY_DEBUG} )
63
- ENDIF (DRACO_LIBRARY_DEBUG AND DRACO_LIBRARY )
53
+ FIND_PACKAGE_HANDLE_STANDARD_ARGS (Draco DEFAULT_MSG DRACO_LIBRARY DRACO_INCLUDE_DIR )
64
54
65
- FIND_PACKAGE_HANDLE_STANDARD_ARGS (DRACO DEFAULT_MSG DRACO_LIBRARY DRACO_LIBRARY_DEBUG DRACO_INCLUDE_DIR )
66
-
67
- MARK_AS_ADVANCED (DRACO_LIBRARY DRACO_LIBRARY_DEBUG DRACO_INCLUDE_DIR )
68
-
69
- ELSE (MSVC )
70
- # rest of the world
71
- SET (DRACO_LIBRARIES ${DRACO_LIBRARY} )
72
-
73
- FIND_PACKAGE_HANDLE_STANDARD_ARGS (Draco DEFAULT_MSG DRACO_LIBRARY DRACO_INCLUDE_DIR )
74
-
75
- MARK_AS_ADVANCED (DRACO_LIBRARY DRACO_INCLUDE_DIR )
76
-
77
- ENDIF (MSVC )
55
+ MARK_AS_ADVANCED (DRACO_LIBRARY DRACO_INCLUDE_DIR )
78
56
79
57
IF (DRACO_FOUND )
80
58
SET (DRACO_INCLUDE_DIRS ${DRACO_INCLUDE_DIR} )
You can’t perform that action at this time.
0 commit comments