Commit 3faa3879 by Wenzel Jakob

Merge pull request #66 from aldanor/patch-1

Add an include in cmake.rst
parents f08a3f06 4f88edde
...@@ -16,6 +16,8 @@ and that the pybind11 repository is located in a subdirectory named :file:`pybin ...@@ -16,6 +16,8 @@ and that the pybind11 repository is located in a subdirectory named :file:`pybin
# Add a CMake parameter for choosing a desired Python version # Add a CMake parameter for choosing a desired Python version
set(EXAMPLE_PYTHON_VERSION "" CACHE STRING "Python version to use for compiling the example library") set(EXAMPLE_PYTHON_VERSION "" CACHE STRING "Python version to use for compiling the example library")
include(CheckCXXCompilerFlag)
# Set a default build configuration if none is specified. 'MinSizeRel' produces the smallest binaries # Set a default build configuration if none is specified. 'MinSizeRel' produces the smallest binaries
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'MinSizeRel' as none was specified.") message(STATUS "Setting build type to 'MinSizeRel' as none was specified.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment