use cmake defined names for jpeg, png, zlib and python libs, building on *nix with non-standard libjpeg/png/zlib locations was broken.
in the case of python this makes it easier to move to find_package(PythonLibs) when 3.x is supported.
This commit is contained in:
@@ -128,10 +128,10 @@ macro(setup_liblinks
|
||||
target_link_libraries(${target} ${PYTHON_LINKFLAGS})
|
||||
|
||||
if(WIN32 AND NOT UNIX)
|
||||
target_link_libraries(${target} debug ${PYTHON_LIB}_d)
|
||||
target_link_libraries(${target} optimized ${PYTHON_LIB})
|
||||
target_link_libraries(${target} debug ${PYTHON_LIBRARY}_d)
|
||||
target_link_libraries(${target} optimized ${PYTHON_LIBRARY})
|
||||
else()
|
||||
target_link_libraries(${target} ${PYTHON_LIB})
|
||||
target_link_libraries(${target} ${PYTHON_LIBRARY})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user