Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
a7b9d5b7
Verified
Commit
a7b9d5b7
authored
Aug 20, 2020
by
Justin Carpentier
Browse files
test: fix search of optional dependencies
parent
13844c02
Pipeline
#10763
passed with stage
in 217 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
unittest/CMakeLists.txt
View file @
a7b9d5b7
...
...
@@ -136,17 +136,15 @@ IF(BUILD_ADVANCED_TESTING)
ADD_PINOCCHIO_UNIT_TEST
(
multiprecision
)
SET_PROPERTY
(
TARGET test-cpp-multiprecision PROPERTY CXX_STANDARD 11
)
find_package
(
PkgConfig QUIET
)
IF
(
PkgConfig_FOUND
)
pkg_check_modules
(
MPFR QUIET mpfr
)
IF
(
MPFR_FOUND
)
ADD_PINOCCHIO_UNIT_TEST
(
multiprecision-mpfr
)
SET_PROPERTY
(
TARGET test-cpp-multiprecision-mpfr PROPERTY CXX_STANDARD 11
)
TARGET_LINK_LIBRARIES
(
test-cpp-multiprecision-mpfr PUBLIC
${
MPFR_LIBRARIES
}
)
TARGET_INCLUDE_DIRECTORIES
(
test-cpp-multiprecision-mpfr PUBLIC
${
MPFR_INCLUDE_DIRS
}
)
TARGET_COMPILE_OPTIONS
(
test-cpp-multiprecision-mpfr PUBLIC
${
MPFR_CFLAGS_OTHER
}
)
ENDIF
(
MPFR_FOUND
)
ENDIF
(
PkgConfig_FOUND
)
ADD_COMPILE_DEPENDENCY
(
gmp
)
ADD_COMPILE_DEPENDENCY
(
mpfr
)
IF
(
MPFR_FOUND
)
ADD_PINOCCHIO_UNIT_TEST
(
multiprecision-mpfr
)
PKG_CONFIG_USE_DEPENDENCY
(
test-cpp-multiprecision-mpfr gmp
)
PKG_CONFIG_USE_DEPENDENCY
(
test-cpp-multiprecision-mpfr mpfr
)
SET_PROPERTY
(
TARGET test-cpp-multiprecision-mpfr PROPERTY CXX_STANDARD 11
)
ENDIF
(
MPFR_FOUND
)
ENDIF
(
BUILD_ADVANCED_TESTING
)
# Automatic differentiation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment