Commit 659efb81 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

CMake/FindMOSEK: do not specify STATIC:

Keeping this empty and controlling behaviour with cmake variables is
best practice, and a static build resolves this issue:
  export called with target "CoMISo" which requires target "FusionCXX" that
  is not in any export set.

We probably should support shared mosek-fusion builds though in the
future.
parent e811b6b1
Pipeline #20306 failed with stages
in 9 minutes and 35 seconds
......@@ -60,7 +60,7 @@ endif()
find_path(MOSEK_SRC_DIR NAMES "SolverInfo.cc" PATHS "${MOSEK_PLATFORM_PATH}/src/fusion_cxx/")
if(MOSEK_LIBRARY AND MOSEK_SRC_DIR AND NOT TARGET MOSEK::FusionCXX)
add_library(FusionCXX SHARED EXCLUDE_FROM_ALL
add_library(FusionCXX EXCLUDE_FROM_ALL
"${MOSEK_SRC_DIR}/BaseModel.cc"
"${MOSEK_SRC_DIR}/Debug.cc"
"${MOSEK_SRC_DIR}/IntMap.cc"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment