File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ Build system
22
22
23
23
### Cmake
24
24
25
+ - define SOPLEX_NEEDED and ZIMPL_NEEDED to avoid syntax error in configuration file
26
+
25
27
### Makefile
26
28
27
29
Miscellaneous
Original file line number Diff line number Diff line change @@ -1063,14 +1063,18 @@ target_link_libraries(libscip
1063
1063
${LAPACK_LIBRARIES}
1064
1064
${PAPILO_IMPORTED_TARGETS} )
1065
1065
1066
+ set (SOPLEX_NEEDED 0 )
1067
+ set (ZIMPL_NEEDED 0 )
1066
1068
if (SHARED )
1067
- set (SOPLEX_NEEDED 0 )
1068
- set (ZIMPL_NEEDED 0 )
1069
1069
target_link_libraries (libscip PRIVATE ${ZIMPL_PIC_LIBRARIES} ${LPS_PIC_LIBRARIES} ${SYM_PIC_LIBRARIES} )
1070
1070
add_executable (scip main.c ${scipsources} ${objscipsources} ${lpisources} ${tpisources} ${symsources} )
1071
1071
else ()
1072
- set (SOPLEX_NEEDED ${SOPLEX_FOUND} )
1073
- set (ZIMPL_NEEDED ${ZIMPL_FOUND} )
1072
+ if (SOPLEX_FOUND )
1073
+ set (SOPLEX_NEEDED 1 )
1074
+ endif ()
1075
+ if (ZIMPL_FOUND )
1076
+ set (ZIMPL_NEEDED 1 )
1077
+ endif ()
1074
1078
target_link_libraries (libscip PRIVATE ${ZIMPL_LIBRARIES} ${LPS_LIBRARIES} ${SYM_LIBRARIES} )
1075
1079
add_executable (scip main.c )
1076
1080
target_link_libraries (scip PUBLIC libscip )
You can’t perform that action at this time.
0 commit comments