Fixed linking to wxWidgets built from Externals under OS X.
This commit is contained in:
parent
7417ecf67f
commit
20fa8bb9f2
|
@ -439,10 +439,12 @@ if(NOT DISABLE_WX)
|
||||||
include_directories(Externals/wxWidgets3)
|
include_directories(Externals/wxWidgets3)
|
||||||
include_directories(Externals/wxWidgets3/include)
|
include_directories(Externals/wxWidgets3/include)
|
||||||
add_subdirectory(Externals/wxWidgets3)
|
add_subdirectory(Externals/wxWidgets3)
|
||||||
|
set(wxWidgets_LIBRARIES "${CMAKE_BINARY_DIR}/Externals/wxWidgets3/libwx.a")
|
||||||
else()
|
else()
|
||||||
include_directories(Externals/wxWidgets/include)
|
include_directories(Externals/wxWidgets/include)
|
||||||
add_subdirectory(Externals/wxWidgets)
|
add_subdirectory(Externals/wxWidgets)
|
||||||
endif()
|
endif()
|
||||||
|
set(wxWidgets_FOUND TRUE)
|
||||||
endif(wxWidgets_FOUND)
|
endif(wxWidgets_FOUND)
|
||||||
add_definitions(-DHAVE_WX=1)
|
add_definitions(-DHAVE_WX=1)
|
||||||
endif(NOT DISABLE_WX)
|
endif(NOT DISABLE_WX)
|
||||||
|
|
Loading…
Reference in New Issue