We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 410a90f commit ca616a0Copy full SHA for ca616a0
external/cmake-files/LPSolve.cmake
@@ -71,4 +71,16 @@ endif(NOT APPLE)
71
${LP_SOLVE_DIR}/lp_utils.c
72
${LP_SOLVE_DIR}/lp_wlp.c)
73
74
+ # Force lp_solve to be compiled as pure C (not C++)
75
+ set_target_properties(lp_solve PROPERTIES
76
+ LINKER_LANGUAGE C
77
+ C_STANDARD 99
78
+ C_STANDARD_REQUIRED YES
79
+ )
80
+
81
+ # Remove accidental C++ flags
82
+ target_compile_options(lp_solve PRIVATE
83
+ $<$<COMPILE_LANGUAGE:C>:-std=c99>
84
85
86
endfunction()
0 commit comments