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
49720f03
Commit
49720f03
authored
May 26, 2016
by
Dean Moldovan
Browse files
Add PYBIND11_ prefix to variable and remove redundant OSX property
parent
03d6a514
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
CMakeLists.txt
CMakeLists.txt
+4
-5
No files found.
CMakeLists.txt
View file @
49720f03
...
...
@@ -10,13 +10,13 @@ cmake_minimum_required(VERSION 2.8.12)
project
(
pybind11
)
# 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
)
set
(
MASTER_PROJECT ON
)
set
(
PYBIND11_
MASTER_PROJECT ON
)
endif
()
option
(
PYBIND11_INSTALL
"Install pybind11 header files?"
${
MASTER_PROJECT
}
)
option
(
PYBIND11_TEST
"Build tests?"
${
MASTER_PROJECT
}
)
option
(
PYBIND11_INSTALL
"Install pybind11 header files?"
${
PYBIND11_
MASTER_PROJECT
}
)
option
(
PYBIND11_TEST
"Build tests?"
${
PYBIND11_
MASTER_PROJECT
}
)
# 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"
)
...
...
@@ -62,7 +62,6 @@ function(pybind11_add_module target_name)
target_link_libraries
(
${
target_name
}
${
PYTHON_LIBRARIES
}
)
elseif
(
APPLE
)
# 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"
)
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