Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,20 @@ endif ()
if (UNIX)
if (EXISTS /usr/local/bin/wx-config-3)
set(wxWidgets_CONFIG_EXECUTABLE /usr/local/bin/wx-config-3)
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
find_package(wxWidgets QUIET REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
else ()
set(wxWidgets_CONFIG_EXECUTABLE $ENV{WXMSW3}/bin/wx-config)
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
find_package(wxWidgets QUIET REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
endif ()
else ()
set(wxWidgets_ROOT_DIR $ENV{WXMSW3})
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base scintilla)
# set(CMAKE_MAP_IMPORTED_CONFIG_DEBUG Release)
find_package(wxWidgets QUIET REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base scintilla)
endif ()

include(${wxWidgets_USE_FILE})
if (wxWidgets_FOUND)
include(${wxWidgets_USE_FILE})
endif ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${wxWidgets_CXX_FLAGS}")

if (UNIX AND NOT APPLE)
Expand Down
2 changes: 1 addition & 1 deletion src/dview/dvfilereader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ bool wxDVFileReader::ReadSQLFile(wxDVPlotCtrl *plotWin, const wxString &filename
dictionaryIndex = sqlite3_column_int(sqlStmtPtr, 0);
name = ColumnText(sqlite3_column_text(sqlStmtPtr, 1));
keyValue = ColumnText(sqlite3_column_text(sqlStmtPtr, 2)).length() ? ColumnText(
sqlite3_column_text(sqlStmtPtr, 2)) : "Site";
sqlite3_column_text(sqlStmtPtr, 2)) : wxString("Site");
rf = ColumnText(sqlite3_column_text(sqlStmtPtr, 3));
units = ColumnText(sqlite3_column_text(sqlStmtPtr, 4));

Expand Down
2 changes: 1 addition & 1 deletion src/ole/iehtmlwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void wxIEHtmlWin::SetupBrowser() {
m_webBrowser->put_RegisterAsBrowser(VARIANT_TRUE);
m_webBrowser->put_RegisterAsDropTarget(VARIANT_TRUE);

m_webBrowser->Navigate(L"about:blank", NULL, NULL, NULL, NULL);
m_webBrowser->Navigate((BSTR)"about:blank", NULL, NULL, NULL, NULL);
}


Expand Down
2 changes: 1 addition & 1 deletion src/registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ END_EVENT_TABLE()

wxOnlineRegistration::wxOnlineRegistration(wxWindow *parent)
: wxDialog(parent, wxID_ANY,
gs_regData ? gs_regData->GetAppName() + " Registration" : "Software Registration",
gs_regData ? gs_regData->GetAppName() + wxString(" Registration") : wxString("Software Registration"),
wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE) {
wxFont font(wxMetroTheme::Font(wxMT_LIGHT, 12));
SetBackgroundColour(wxMetroTheme::Colour(wxMT_FOREGROUND));
Expand Down
7 changes: 7 additions & 0 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ else ()
target_link_libraries(wexsandbox optimized ${LK_LIB})
endif()
endif ()

if (wxWidgets_FOUND)
include(${wxWidgets_USE_FILE})
endif ()
add_compile_options(${wxWidgets_CXX_FLAGS})
add_definitions(-DLK_USE_WXWIDGETS )

if (UNIX AND NOT APPLE)
target_link_libraries(wexsandbox wex ${wxWidgets_LIBRARIES} ${FONTCONFIG_LIBRARY})
else ()
Expand Down