Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
69821d9e
Unverified
Commit
69821d9e
authored
Aug 18, 2020
by
Paul Fultz II
Committed by
GitHub
Aug 18, 2020
Browse files
Disable testing when using BUILD_TESTING (#1682)
parent
cf0a6459
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
CMakeLists.txt
CMakeLists.txt
+9
-2
No files found.
CMakeLists.txt
View file @
69821d9e
...
@@ -272,6 +272,13 @@ if(PYBIND11_INSTALL)
...
@@ -272,6 +272,13 @@ if(PYBIND11_INSTALL)
endif
()
endif
()
endif
()
endif
()
if
(
PYBIND11_TEST
OR
(
BUILD_TESTING AND PYBIND11_MASTER_PROJECT
))
# BUILD_TESTING takes priority, but only if this is the master project
add_subdirectory
(
tests
)
if
(
PYBIND11_MASTER_PROJECT AND DEFINED BUILD_TESTING
)
if
(
BUILD_TESTING
)
add_subdirectory
(
tests
)
endif
()
else
()
if
(
PYBIND11_TEST
)
add_subdirectory
(
tests
)
endif
()
endif
()
endif
()
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