diff options
author | Nikhil Marathe <nsm.nikhil@gmail.com> | 2010-11-23 09:46:32 +0300 |
---|---|---|
committer | Tom Hughes <tom.hughes@palm.com> | 2010-11-24 08:33:20 +0300 |
commit | 1b6b090cdc63301ccd1a2b1f3105c5bde7a73cf8 (patch) | |
tree | c564f05e7c1bb11142c8618615f6074bd4e49863 /CMakeLists.txt | |
parent | 14e6b07f6354f0dbeabd3c723a4586bafa662cc0 (diff) |
Use CMake's standard way to find Python.
Rather than have the python literal string, use CMake's find_package
to find actual python executable. This is more useful if you have
both Python 2 and 3 installed. CMake currently only supports python 2
and so will automatically find that version
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index da4d629e0f8..88feea7ef3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,8 @@ project(node) # options # +find_package(PythonInterp 2 REQUIRED) + option(SHARED_V8 "use system shared V8 library") option(SHARED_LIBEV "use system shared libev library") option(SHARED_CARES "use system shared c-ares library") |