Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
29b99a11
Commit
29b99a11
authored
Aug 30, 2017
by
Florian Apolloner
Committed by
Dean Moldovan
Aug 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify CXX as project language for CMake >= 3.4 (#1027)
parent
b8c5dbde
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
CMakeLists.txt
+6
-1
tests/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
29b99a11
...
...
@@ -12,7 +12,12 @@ if (POLICY CMP0048)
cmake_policy
(
SET CMP0048 NEW
)
endif
()
project
(
pybind11
)
# CMake versions < 3.4.0 do not support try_compile/pthread checks without C as active language.
if
(
CMAKE_VERSION VERSION_LESS 3.4.0
)
project
(
pybind11
)
else
()
project
(
pybind11 CXX
)
endif
()
# Check if pybind11 is being used directly or via add_subdirectory
set
(
PYBIND11_MASTER_PROJECT OFF
)
...
...
tests/CMakeLists.txt
View file @
29b99a11
...
...
@@ -12,7 +12,7 @@ option(PYBIND11_WERROR "Report all warnings as errors" OFF)
if
(
CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR
)
# We're being loaded directly, i.e. not via add_subdirectory, so make this
# work as its own project and load the pybind11Config to get the tools we need
project
(
pybind11_tests
)
project
(
pybind11_tests
CXX
)
find_package
(
pybind11 REQUIRED CONFIG
)
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