CMake: don't globally include wxWidgets headers

This commit is contained in:
Michael Maltese
2017-04-24 14:33:15 -07:00
parent f4c0723387
commit 6e1940c404
3 changed files with 11 additions and 7 deletions

View File

@ -78,7 +78,7 @@ set(GUI_SRCS
WxUtils.cpp
)
set(WXLIBS ${wxWidgets_LIBRARIES})
set(WXLIBS wxWidgets::wxWidgets)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(WXLIBS ${WXLIBS} dl)