Fix some python version issues with cmake

Summary:
This script will attempt to determine files that will be useful for building with the correct python version.  Currently on macOS with various python installations CMake fails to determine the correct location of python libraries.
Closes https://github.com/caffe2/caffe2/pull/163

Reviewed By: Yangqing

Differential Revision: D4594954

Pulled By: bwasti

fbshipit-source-id: c2b750ee9608a02fad4ce2f2293f5fa54dc7011c
This commit is contained in:
Bram Wasti
2017-02-21 17:39:37 -08:00
committed by Facebook Github Bot
parent 26be1977bf
commit 7a65736e46
2 changed files with 40 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# This makefile does nothing but delegating the actual building to cmake.
all:
@mkdir -p build && cd build && cmake .. && make
@mkdir -p build && cd build && cmake .. $(python ./scripts/get_python_cmake_flags.py) && make
local:
@./scripts/build_local.sh