Do not add parameters to a target not defined (if QT was not detected)

This commit is contained in:
Raphael Coeffic
2021-08-05 09:18:27 +02:00
parent a2b8b4ecba
commit 5cd68753d3
+3 -1
View File
@@ -71,7 +71,9 @@ endif()
if(WIN32)
include_directories(SYSTEM ${WIN_INCLUDE_DIRS})
target_link_libraries(${SIMULATOR_TARGET} PRIVATE ${WIN_LINK_LIBRARIES})
if(Qt5Widgets_FOUND)
target_link_libraries(${SIMULATOR_TARGET} PRIVATE ${WIN_LINK_LIBRARIES})
endif()
endif(WIN32)
if(MSVC)