missing GTSAM_BUILD_STATIC_LIBRARY flags
parent
87888f7bc3
commit
0b1791583f
|
@ -153,9 +153,9 @@ if (GTSAM_INSTALL_MATLAB_TOOLBOX)
|
||||||
|
|
||||||
# Generate, build and install toolbox
|
# Generate, build and install toolbox
|
||||||
set(mexFlags "${GTSAM_BUILD_MEX_BINARY_FLAGS}")
|
set(mexFlags "${GTSAM_BUILD_MEX_BINARY_FLAGS}")
|
||||||
if(GTSAM_BUILD_STATIC_LIBRARY)
|
if(NOT BUILD_SHARED_LIBS)
|
||||||
list(APPEND mexFlags -DGTSAM_IMPORT_STATIC)
|
list(APPEND mexFlags -DGTSAM_IMPORT_STATIC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Wrap
|
# Wrap
|
||||||
wrap_and_install_library(../gtsam.h "${GTSAM_ADDITIONAL_LIBRARIES}" "" "${mexFlags}")
|
wrap_and_install_library(../gtsam.h "${GTSAM_ADDITIONAL_LIBRARIES}" "" "${mexFlags}")
|
||||||
|
|
|
@ -106,9 +106,9 @@ if (GTSAM_INSTALL_MATLAB_TOOLBOX)
|
||||||
|
|
||||||
# Generate, build and install toolbox
|
# Generate, build and install toolbox
|
||||||
set(mexFlags "${GTSAM_BUILD_MEX_BINARY_FLAGS}")
|
set(mexFlags "${GTSAM_BUILD_MEX_BINARY_FLAGS}")
|
||||||
if(GTSAM_BUILD_STATIC_LIBRARY)
|
if(NOT BUILD_SHARED_LIBS)
|
||||||
list(APPEND mexFlags -DGTSAM_IMPORT_STATIC)
|
list(APPEND mexFlags -DGTSAM_IMPORT_STATIC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Wrap
|
# Wrap
|
||||||
wrap_and_install_library(gtsam_unstable.h "gtsam" "" "${mexFlags}")
|
wrap_and_install_library(gtsam_unstable.h "gtsam" "" "${mexFlags}")
|
||||||
|
|
Loading…
Reference in New Issue