Skip to content

Commit

Permalink
Fix duplicate 'optimized' when using new libpack
Browse files Browse the repository at this point in the history
When using a CLbundler libpack, PYTHON_LIBRARY has both optimized and debug
libs, but it doesn't when using an old libpack, which was the reason for
commit f5a4e68
  • Loading branch information
peterlama committed Dec 29, 2014
1 parent 6a1cb47 commit 32dd867
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
5 changes: 2 additions & 3 deletions cMake/UseLibPack10x.cmake
Expand Up @@ -11,11 +11,10 @@ include_directories(${FREECAD_LIBPACK_DIR}/include)
set(OPENGL_gl_LIBRARY opengl32 glu32)

# Python
set(PYTHON_DEBUG_LIBRARY python27_d.lib)
set(PYTHON_LIBRARY python27.lib)
set(PYTHON_LIBRARY 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)
set(PYTHONLIBS_FOUND TRUE)

# XercesC
set(XERCESC_INCLUDE_DIR ${FREECAD_LIBPACK_DIR}/include/xerces-c-3.1.1)
Expand Down
3 changes: 1 addition & 2 deletions cMake/UseLibPack9x.cmake
Expand Up @@ -11,8 +11,7 @@ include_directories(${FREECAD_LIBPACK_DIR}/include)
set(OPENGL_gl_LIBRARY opengl32 glu32)

# Python
set(PYTHON_DEBUG_LIBRARY python27_d.lib)
set(PYTHON_LIBRARY python27.lib)
set(PYTHON_LIBRARY 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 src/3rdParty/Pivy-0.5/CMakeLists.txt
Expand Up @@ -27,8 +27,7 @@ if(MSVC)
Rpcrt4.lib
debug ${COIN3D_LIBRARY_DEBUG}
optimized ${COIN3D_LIBRARY_RELEASE}
debug ${PYTHON_DEBUG_LIBRARY}
optimized ${PYTHON_LIBRARY})
${PYTHON_LIBRARY})
else(MSVC)
set(CoinPy_LIBS
${COIN3D_LIBRARY}
Expand Down
3 changes: 1 addition & 2 deletions src/Base/CMakeLists.txt
Expand Up @@ -21,8 +21,7 @@ if(MSVC)
set(FreeCADBase_LIBS
${Boost_LIBRARIES}
${Boost_DEBUG_LIBRARIES}
debug ${PYTHON_DEBUG_LIBRARY}
optimized ${PYTHON_LIBRARY}
${PYTHON_LIBRARY}
debug ${XERCESC_DEBUG_LIBRARIES}
optimized ${XERCESC_LIBRARIES}
${QT_QTCORE_LIBRARY}
Expand Down

0 comments on commit 32dd867

Please sign in to comment.