Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework Python build to allow us to use
find_package()
to get config…
…uration (#1085).
- Loading branch information
Showing
3 changed files
with
63 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
PROJECT(PythonBuild) | ||
|
||
## Build Python | ||
|
||
SET(PYTHON_VERSION 3.5.2 CACHE STRING "") | ||
|
||
SET(INSTALL_DEVELOPMENT ON) | ||
SET(INSTALL_MANUAL OFF) | ||
SET(INSTALL_TEST OFF) | ||
SET(BUILD_LIBPYTHON_SHARED OFF) | ||
|
||
###set(BUILD_EXTENSIONS_AS_BUILTIN ON) | ||
####USE_LIB64 | ||
####SET(USE_SYSTEM_LIBRARIES OFF) | ||
####SET(USE_SYSTEM_ZLIB OFF) | ||
####SET(ZLIB_INCLUDE_DIR...) | ||
### | ||
|
||
SET(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/../Python) | ||
|
||
add_subdirectory(cmake ${CMAKE_CURRENT_BINARY_DIR}/Python) |