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
49720f03
Commit
49720f03
authored
May 26, 2016
by
Dean Moldovan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PYBIND11_ prefix to variable and remove redundant OSX property
parent
03d6a514
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
CMakeLists.txt
+4
-5
No files found.
CMakeLists.txt
View file @
49720f03
...
@@ -10,13 +10,13 @@ cmake_minimum_required(VERSION 2.8.12)
...
@@ -10,13 +10,13 @@ cmake_minimum_required(VERSION 2.8.12)
project
(
pybind11
)
project
(
pybind11
)
# Check if pybind11 is being used directly or via add_subdirectory
# Check if pybind11 is being used directly or via add_subdirectory
set
(
MASTER_PROJECT OFF
)
set
(
PYBIND11_
MASTER_PROJECT OFF
)
if
(
CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR
)
if
(
CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR
)
set
(
MASTER_PROJECT ON
)
set
(
PYBIND11_
MASTER_PROJECT ON
)
endif
()
endif
()
option
(
PYBIND11_INSTALL
"Install pybind11 header files?"
${
MASTER_PROJECT
}
)
option
(
PYBIND11_INSTALL
"Install pybind11 header files?"
${
PYBIND11_
MASTER_PROJECT
}
)
option
(
PYBIND11_TEST
"Build tests?"
${
MASTER_PROJECT
}
)
option
(
PYBIND11_TEST
"Build tests?"
${
PYBIND11_
MASTER_PROJECT
}
)
# Add a CMake parameter for choosing a desired Python version
# Add a CMake parameter for choosing a desired Python version
set
(
PYBIND11_PYTHON_VERSION
""
CACHE STRING
"Python version to use for compiling the example application"
)
set
(
PYBIND11_PYTHON_VERSION
""
CACHE STRING
"Python version to use for compiling the example application"
)
...
@@ -62,7 +62,6 @@ function(pybind11_add_module target_name)
...
@@ -62,7 +62,6 @@ function(pybind11_add_module target_name)
target_link_libraries
(
${
target_name
}
${
PYTHON_LIBRARIES
}
)
target_link_libraries
(
${
target_name
}
${
PYTHON_LIBRARIES
}
)
elseif
(
APPLE
)
elseif
(
APPLE
)
# Make sure OS X does not have any issues with missing symbols
# Make sure OS X does not have any issues with missing symbols
set_target_properties
(
${
target_name
}
PROPERTIES MACOSX_RPATH
"."
)
target_link_libraries
(
${
target_name
}
PRIVATE
"-undefined dynamic_lookup"
)
target_link_libraries
(
${
target_name
}
PRIVATE
"-undefined dynamic_lookup"
)
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