From e11469a43c93d94aa636f98f98a3dfb5c338ca93 Mon Sep 17 00:00:00 2001 From: Hamed Sabri Date: Wed, 8 Apr 2020 10:09:18 -0400 Subject: [PATCH] Fix the build when project is not created with Qt. --- plugin/adsk/plugin/CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugin/adsk/plugin/CMakeLists.txt b/plugin/adsk/plugin/CMakeLists.txt index 14ecd00a7a..b930744b79 100644 --- a/plugin/adsk/plugin/CMakeLists.txt +++ b/plugin/adsk/plugin/CMakeLists.txt @@ -51,10 +51,21 @@ target_include_directories(${TARGET_NAME} # ----------------------------------------------------------------------------- target_link_libraries(${TARGET_NAME} PRIVATE - $<$:mayaUsdUI> $<$:${UFE_LIBRARY}> ) +if (${Qt5_FOUND}) + target_link_libraries(${TARGET_NAME} + PRIVATE + mayaUsdUI + ) +else() + target_link_libraries(${TARGET_NAME} + PRIVATE + mayaUsd + ) +endif() + # ----------------------------------------------------------------------------- # properties # -----------------------------------------------------------------------------