Skip to content

Commit

Permalink
+ replace PYTHON_LIBRARY with correct variable PYTHON_LIBRARIES
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 16, 2015
1 parent 0b1da87 commit 40cd060
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion cMake/UseLibPack10x.cmake
Expand Up @@ -11,7 +11,7 @@ include_directories(${FREECAD_LIBPACK_DIR}/include)
set(OPENGL_gl_LIBRARY opengl32 glu32)

# Python
set(PYTHON_LIBRARY optimized python27.lib debug python27_d.lib)
set(PYTHON_LIBRARIES optimized python27.lib debug python27_d.lib)
set(PYTHON_INCLUDE_PATH ${FREECAD_LIBPACK_DIR}/include/Python-2.7.5)
set(PYTHON_EXECUTABLE ${FREECAD_LIBPACK_DIR}/bin/python.exe)
set(PYTHONLIBS_FOUND TRUE)
Expand Down
3 changes: 1 addition & 2 deletions cMake/UseLibPack6x.cmake
Expand Up @@ -11,8 +11,7 @@ include_directories(${FREECAD_LIBPACK_DIR}/include)
set(OPENGL_gl_LIBRARY opengl32 glu32)

# Python
set(PYTHON_DEBUG_LIBRARY python25_d.lib)
set(PYTHON_LIBRARY python25.lib)
set(PYTHON_LIBRARIES optimized python25.lib debug python25_d.lib)
set(PYTHON_INCLUDE_PATH ${FREECAD_LIBPACK_DIR}/include/python)
set(PYTHON_EXECUTABLE ${FREECAD_LIBPACK_DIR}/bin/python.exe)
set(PYTHONLIBS_FOUND TRUE)
Expand Down
3 changes: 1 addition & 2 deletions cMake/UseLibPack7x.cmake
Expand Up @@ -11,8 +11,7 @@ include_directories(${FREECAD_LIBPACK_DIR}/include)
set(OPENGL_gl_LIBRARY opengl32 glu32)

# Python
set(PYTHON_DEBUG_LIBRARY python26_d.lib)
set(PYTHON_LIBRARY python26.lib)
set(PYTHON_LIBRARIES optimized python26.lib debug python26_d.lib)
set(PYTHON_INCLUDE_PATH ${FREECAD_LIBPACK_DIR}/include/python)
set(PYTHON_EXECUTABLE ${FREECAD_LIBPACK_DIR}/bin/python.exe)
set(PYTHONLIBS_FOUND TRUE)
Expand Down
3 changes: 1 addition & 2 deletions cMake/UseLibPack8x.cmake
Expand Up @@ -11,8 +11,7 @@ include_directories(${FREECAD_LIBPACK_DIR}/include)
set(OPENGL_gl_LIBRARY opengl32 glu32)

# Python
set(PYTHON_DEBUG_LIBRARY python26_d.lib)
set(PYTHON_LIBRARY python26.lib)
set(PYTHON_LIBRARIES optimized python26.lib debug python26_d.lib)
set(PYTHON_INCLUDE_PATH ${FREECAD_LIBPACK_DIR}/include/python)
set(PYTHON_EXECUTABLE ${FREECAD_LIBPACK_DIR}/bin/python.exe)
set(PYTHONLIBS_FOUND TRUE)
Expand Down
2 changes: 1 addition & 1 deletion cMake/UseLibPack9x.cmake
Expand Up @@ -11,7 +11,7 @@ include_directories(${FREECAD_LIBPACK_DIR}/include)
set(OPENGL_gl_LIBRARY opengl32 glu32)

# Python
set(PYTHON_LIBRARY optimized python27.lib debug python27_d.lib)
set(PYTHON_LIBRARIES optimized python27.lib debug python27_d.lib)
set(PYTHON_INCLUDE_PATH ${FREECAD_LIBPACK_DIR}/include/Python-2.7.6)
set(PYTHON_EXECUTABLE ${FREECAD_LIBPACK_DIR}/bin/python.exe)
set(PYTHONLIBS_FOUND TRUE)
Expand Down
3 changes: 1 addition & 2 deletions cMake/UseLibPackCustom.cmake
Expand Up @@ -11,8 +11,7 @@ include_directories(${FREECAD_LIBPACK_DIR}/include)
set(OPENGL_gl_LIBRARY opengl32 glu32)

# Python
set(PYTHON_DEBUG_LIBRARY python26_d.lib)
set(PYTHON_LIBRARY python26.lib)
set(PYTHON_LIBRARIES optimized python26.lib debug python26_d.lib)
set(PYTHON_INCLUDE_PATH ${FREECAD_LIBPACK_DIR}/include/Python-2.6.4)
set(PYTHON_EXECUTABLE ${FREECAD_LIBPACK_DIR}/bin/python.exe)
set(PYTHONLIBS_FOUND TRUE)
Expand Down
6 changes: 3 additions & 3 deletions src/Base/CMakeLists.txt
Expand Up @@ -21,7 +21,7 @@ if(MSVC)
set(FreeCADBase_LIBS
${Boost_LIBRARIES}
${Boost_DEBUG_LIBRARIES}
${PYTHON_LIBRARY}
${PYTHON_LIBRARIES}
debug ${XERCESC_DEBUG_LIBRARIES}
optimized ${XERCESC_LIBRARIES}
${QT_QTCORE_LIBRARY}
Expand All @@ -35,7 +35,7 @@ if(MSVC)
)
elseif(MINGW)
set(FreeCADBase_LIBS
${PYTHON_LIBRARY}
${PYTHON_LIBRARIES}
${XERCESC_LIBRARIES}
${QT_QTCORE_LIBRARY}
${Boost_LIBRARIES}
Expand All @@ -44,7 +44,7 @@ elseif(MINGW)
)
else(MSVC)
set(FreeCADBase_LIBS
${PYTHON_LIBRARY}
${PYTHON_LIBRARIES}
${XERCESC_LIBRARIES}
${QT_QTCORE_LIBRARY}
${Boost_LIBRARIES}
Expand Down

0 comments on commit 40cd060

Please sign in to comment.