My CMakeLists.txt includes the following lines:
execute_process(COMMAND "python" "-c" "import tensorflow as tf; print tf.sysconfig.get_lib()" OUTPUT_VARIABLE TF_LIB_DIR)
find_library(TF_LIB 
    NAMES tensorflow_framework 
    PATHS ${TF_LIB_DIR}
    NO_DEFAULT_PATH)
Unfortunately - the tensorflow library is not found. This is confirmed by doing:
message(STATUS ${TF_LIB}) which prints out TF_LIB-NOTFOUND.
TF_LIB_DIR is set to /home/ubuntu/.local/lib/python2.7/site-packages/tensorflow by the execute_process call.
The contents of this directory is aux-bin  contrib  core  examples  include  __init__.py  __init__.pyc  libtensorflow_framework.so  python  tools
What am I doing wrong?