Refer to the wxWidgets libary as "wx" instead of its full path name.

This ensures that additional library dependencies declared for "wx"
using target_link_libraries() are applied.
This commit is contained in:
Maarten ter Huurne 2011-12-05 05:39:41 +01:00
parent d440dfe9b2
commit 54ea98b0a9
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ if(NOT DISABLE_WX)
include_directories(Externals/wxWidgets3)
include_directories(Externals/wxWidgets3/include)
add_subdirectory(Externals/wxWidgets3)
set(wxWidgets_LIBRARIES "${CMAKE_BINARY_DIR}/Externals/wxWidgets3/libwx.a")
set(wxWidgets_LIBRARIES "wx")
else()
include_directories(Externals/wxWidgets/include)
add_subdirectory(Externals/wxWidgets)