Skip to content

Commit 2d4710d

Browse files
committed
Merge branch 'ortools_build' into ortool__full_release
2 parents 630c602 + 1b34342 commit 2d4710d

5 files changed

Lines changed: 29 additions & 17 deletions

File tree

CMakeLists.txt

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ if (UNIX)
134134
endif ()
135135

136136
if (APPLE)
137-
find_package(wxWidgets REQUIRED xrc webview stc richtext ribbon propgrid aui gl html qa adv core xml net base )
137+
find_package(wxWidgets QUIET REQUIRED xrc webview stc richtext ribbon propgrid aui gl html qa adv core xml net base )
138138
else()
139-
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base )
139+
find_package(wxWidgets QUIET REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base )
140140
endif()
141-
else()
142-
set(wxWidgets_ROOT_DIR $ENV{WXMSW3})
143-
find_package(wxWidgets REQUIRED xrc webview stc richtext ribbon propgrid aui gl html qa adv core xml net base scintilla)
141+
#else()
142+
# set(wxWidgets_ROOT_DIR $ENV{WXMSW3})
143+
# find_package(wxWidgets QUIET REQUIRED xrc webview stc richtext ribbon propgrid aui gl html qa adv core xml net base scintilla)
144144
endif()
145145

146146
include(${wxWidgets_USE_FILE})
@@ -411,5 +411,17 @@ else()
411411
COMMAND ${CMAKE_COMMAND}
412412
ARGS -E copy $ENV{SSCDIR}/ssc/sscapi.h ${CMAKE_CURRENT_SOURCE_DIR}/deploy/runtime
413413
)
414+
415+
file(GLOB ORTOOLS_DLLS "$ENV{ORTOOLSDIR}/bin/*.dll")
416+
foreach( file_i ${ORTOOLS_DLLS})
417+
add_custom_command(
418+
TARGET ${SAM_EXE}
419+
POST_BUILD
420+
COMMAND ${CMAKE_COMMAND}
421+
ARGS -E copy ${file_i} ${SAMEXE_DIR}
422+
)
423+
endforeach( file_i )
424+
425+
414426
endif()
415427

api/api_autogen/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ add_compile_definitions( LK_USE_WXWIDGETS )
6464
if (UNIX)
6565
if (EXISTS /usr/local/bin/wx-config-3)
6666
set(wxWidgets_CONFIG_EXECUTABLE /usr/local/bin/wx-config-3)
67-
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
67+
find_package(wxWidgets QUIET REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
6868
else ()
6969
set(wxWidgets_CONFIG_EXECUTABLE $ENV{WXMSW3}/bin/wx-config)
70-
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
70+
find_package(wxWidgets QUIET REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
7171
endif ()
72-
else()
73-
set(wxWidgets_ROOT_DIR $ENV{WXMSW3})
74-
find_package(wxWidgets COMPONENTS qa webview aui richtext html propgrid adv net stc core base scintilla REQUIRED)
72+
#else()
73+
# set(wxWidgets_ROOT_DIR $ENV{WXMSW3})
74+
# find_package(wxWidgets QUIET COMPONENTS qa webview aui richtext html propgrid adv net stc core base scintilla REQUIRED)
7575
endif()
7676

7777
include(${wxWidgets_USE_FILE})

api/api_autogen/builder_generator_helper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ std::string ssc_value_to_json(int ssc_type, VarValue* vv){
198198
json += "\"invalid\"";
199199
break;
200200
case SSC_STRING:
201-
json += "\"" + (vv? vv->AsString() : "" ) + "\"";
201+
json += "\"" + (vv? vv->AsString() : wxString("") ) + "\"";
202202
break;
203203
case SSC_NUMBER:
204204
if (vv && vv->Value() > std::numeric_limits<double>::max()){
@@ -207,7 +207,7 @@ std::string ssc_value_to_json(int ssc_type, VarValue* vv){
207207
json += c;
208208
}
209209
else
210-
json += (vv? vv->AsString() : "0" );
210+
json += (vv? vv->AsString() : wxString("0") );
211211
break;
212212
case SSC_ARRAY:
213213
json += "[";

api/api_autogen/config_extractor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ size_t config_extractor::load_variables_into_graph(VarTable &vt) {
114114
else{
115115
wxArrayString cmod_names = vt.ListAll(nullptr);
116116
for (size_t j = 0; j < cmod_names.size(); j++) {
117-
std::string cmod_symbol = cmod_names[j];
117+
std::string cmod_symbol = cmod_names[j].ToStdString();
118118
auto vtt = vt.Get(cmod_symbol)->Table();
119119
wxArrayString var_names = vtt.ListAll(nullptr);
120120
for (size_t i = 0; i < var_names.size(); i++){

test/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ add_definitions(-DLK_USE_WXWIDGETS )
7777
# setup wxWidgets
7878
if (UNIX)
7979
set(wxWidgets_CONFIG_EXECUTABLE /usr/local/bin/wx-config-3)
80-
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
81-
else()
82-
set(wxWidgets_ROOT_DIR $ENV{WXMSW3})
83-
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base scintilla)
80+
find_package(wxWidgets QUIET REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
81+
#else()
82+
# set(wxWidgets_ROOT_DIR $ENV{WXMSW3})
83+
# find_package(wxWidgets QUIET REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base scintilla)
8484
endif()
8585

8686
include(${wxWidgets_USE_FILE})

0 commit comments

Comments
 (0)