Closed gokceneraslan closed 8 years ago
OK, this seems to be a bug in /usr/share/cmake-2.8/Modules/FindPythonLibs.cmake
file in Ubuntu 14.04.4, not related to MOE at all. Following patch fixed the problem, I'm closing the bug:
diff --git a/FindPythonLibs.cmake b/FindPythonLibs.cmake
index 1cf6bde..61c83d2 100644
--- a/FindPythonLibs.cmake
+++ b/FindPythonLibs.cmake
@@ -190,7 +190,7 @@ mark_as_advanced(
# cache entries because they are meant to specify the location of a single
# library. We now set the variables listed by the documentation for this
# module.
-set(PYTHON_INCLUDE_DIRS "${PYTHON_INCLUDE_DIR}" "${PYTHON_INCLUDE_DIR2}")
+set(PYTHON_INCLUDE_DIRS "${PYTHON_INCLUDE_DIR}")
set(PYTHON_DEBUG_LIBRARIES "${PYTHON_DEBUG_LIBRARY}")
# These variables have been historically named in this module different from
When I try to compile MOE with python from miniconda2, I get this error:
I can compile it only if I apply the following patch:
Is it correct to set
PYTHON_INCLUDE_DIR
variable in CMakeLists.txt or should it bePYTHON_INCLUDE_DIRS
?