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
c13fc871
Verified
Commit
c13fc871
authored
Aug 20, 2020
by
Justin Carpentier
Browse files
cmake: fix optional dependency search
parent
a7b9d5b7
Pipeline
#10764
passed with stage
in 150 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
unittest/CMakeLists.txt
View file @
c13fc871
...
...
@@ -32,6 +32,11 @@ MACRO(ADD_PINOCCHIO_UNIT_TEST NAME)
TARGET_LINK_LIBRARIES
(
${
TEST_NAME
}
PRIVATE
${
Boost_UNIT_TEST_FRAMEWORK_LIBRARY
}
)
ENDMACRO
(
ADD_PINOCCHIO_UNIT_TEST
)
MACRO
(
ADD_OPTIONAL_COMPILE_DEPENDENCY PKG_CONFIG_STRING
)
_GET_PKG_CONFIG_DEBUG_STRING
(
"
${
PKG_CONFIG_STRING
}
"
${
ARGN
}
)
ADD_DEPENDENCY
(
0 1
${
PKG_CONFIG_STRING
}
"
${
PKG_CONFIG_DEBUG_STRING
}
"
)
ENDMACRO
()
# --- RULES -------------------------------------------------------------------
# --- RULES -------------------------------------------------------------------
# --- RULES -------------------------------------------------------------------
...
...
@@ -136,8 +141,8 @@ IF(BUILD_ADVANCED_TESTING)
ADD_PINOCCHIO_UNIT_TEST
(
multiprecision
)
SET_PROPERTY
(
TARGET test-cpp-multiprecision PROPERTY CXX_STANDARD 11
)
ADD_COMPILE_DEPENDENCY
(
gmp
)
ADD_COMPILE_DEPENDENCY
(
mpfr
)
ADD_
OPTIONAL_
COMPILE_DEPENDENCY
(
gmp
)
ADD_
OPTIONAL_
COMPILE_DEPENDENCY
(
mpfr
)
IF
(
MPFR_FOUND
)
ADD_PINOCCHIO_UNIT_TEST
(
multiprecision-mpfr
)
...
...
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