-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workaround for invalid path in finding urdfdom on Windows (#1456)
- Loading branch information
Showing
3 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (c) 2011-2019, The DART development contributors | ||
# All rights reserved. | ||
# | ||
# The list of contributors can be found at: | ||
# https://github.com/dartsim/dart/blob/master/LICENSE | ||
# | ||
# This file is provided under the "BSD-style" License | ||
|
||
# Find TinyXML | ||
# | ||
# This sets the following variables: | ||
# TinyXML_FOUND | ||
# TinyXML_INCLUDE_DIRS | ||
# TinyXML_LIBRARIES | ||
# TinyXML_VERSION | ||
|
||
find_package(PkgConfig QUIET) | ||
|
||
# Check to see if pkgconfig is installed. | ||
pkg_check_modules(PC_TinyXML tinyxml QUIET) | ||
|
||
# Include directories | ||
find_path(TinyXML_INCLUDE_DIRS | ||
NAMES tinyxml.h | ||
HINTS ${PC_TinyXML_INCLUDEDIR} | ||
PATHS "${CMAKE_INSTALL_PREFIX}/include" | ||
) | ||
|
||
# Libraries | ||
find_library(TinyXML_LIBRARIES NAMES tinyxml HINTS ${PC_TinyXML_LIBDIR}) | ||
|
||
# Version | ||
set(TinyXML_VERSION ${PC_TinyXML_VERSION}) | ||
|
||
# Set (NAME)_FOUND if all the variables and the version are satisfied. | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(TinyXML | ||
FAIL_MESSAGE DEFAULT_MSG | ||
REQUIRED_VARS TinyXML_INCLUDE_DIRS TinyXML_LIBRARIES | ||
VERSION_VAR TinyXML_VERSION | ||
) |