diff --git a/Sources/Plasma/Apps/plClient/CMakeLists.txt b/Sources/Plasma/Apps/plClient/CMakeLists.txt index 5667dd93..9092e4f8 100644 --- a/Sources/Plasma/Apps/plClient/CMakeLists.txt +++ b/Sources/Plasma/Apps/plClient/CMakeLists.txt @@ -187,8 +187,13 @@ target_link_libraries(plClient pnTimer) target_link_libraries(plClient pnUtils) target_link_libraries(plClient pnUtilsExe) -target_link_libraries(plClient debug ${PYTHON_DEBUG_LIBRARY}) -target_link_libraries(plClient optimized ${PYTHON_LIBRARY}) +if(PYTHON_DEBUG_LIBRARY) + target_link_libraries(plClient debug ${PYTHON_DEBUG_LIBRARY}) + target_link_libraries(plClient optimized ${PYTHON_LIBRARY}) +else() + target_link_libraries(plClient ${PYTHON_LIBRARY}) +endif() + target_link_libraries(plClient ${OPENAL_LIBRARY}) target_link_libraries(plClient ${OPENSSL_LIBRARIES}) target_link_libraries(plClient ${EXPAT_LIBRARY}) diff --git a/Sources/Plasma/Apps/plPythonPack/CMakeLists.txt b/Sources/Plasma/Apps/plPythonPack/CMakeLists.txt index 1af4b4f8..5f3996db 100644 --- a/Sources/Plasma/Apps/plPythonPack/CMakeLists.txt +++ b/Sources/Plasma/Apps/plPythonPack/CMakeLists.txt @@ -14,8 +14,13 @@ set(plPythonPack_HEADERS add_executable(plPythonPack ${plPythonPack_SOURCES} ${plPythonPack_HEADERS}) target_link_libraries(plPythonPack CoreLib CoreLibExe plFile) -target_link_libraries(plPythonPack debug ${PYTHON_DEBUG_LIBRARY}) -target_link_libraries(plPythonPack optimized ${PYTHON_LIBRARY}) + +if(PYTHON_DEBUG_LIBRARY) + target_link_libraries(plPythonPack debug ${PYTHON_DEBUG_LIBRARY}) + target_link_libraries(plPythonPack optimized ${PYTHON_LIBRARY}) +else() + target_link_libraries(plPythonPack ${PYTHON_LIBRARY}) +endif() source_group("Source Files" FILES ${plPythonPack_SOURCES}) source_group("Header Files" FILES ${plPythonPack_HEADERS})