fixed CYTHON_INSTALL_PATH cmake variable wrt cache

release/4.3a0
Varun Agrawal 2020-07-01 14:36:16 -05:00
parent 8859b963a2
commit 74591eece6
1 changed files with 2 additions and 4 deletions

View File

@ -455,10 +455,8 @@ if (GTSAM_INSTALL_CYTHON_TOOLBOX)
set(GTSAM_INSTALL_CYTHON_TOOLBOX 1) set(GTSAM_INSTALL_CYTHON_TOOLBOX 1)
# Set up cache options # Set up cache options
# Cython install path appended with Build type (e.g. cython, cythonDebug, etc). # Cython install path appended with Build type (e.g. cython, cythonDebug, etc).
set(GTSAM_CYTHON_INSTALL_PATH "" CACHE PATH "Cython toolbox destination, blank defaults to PROJECT_BINARY_DIR/cython<GTSAM_BUILD_TAG>") # This does not override custom values set from the command line
if(NOT GTSAM_CYTHON_INSTALL_PATH) set(GTSAM_CYTHON_INSTALL_PATH "${PROJECT_BINARY_DIR}/cython${GTSAM_BUILD_TAG}" CACHE PATH "Cython toolbox destination, blank defaults to PROJECT_BINARY_DIR/cython<GTSAM_BUILD_TAG>")
set(GTSAM_CYTHON_INSTALL_PATH "${PROJECT_BINARY_DIR}/cython${GTSAM_BUILD_TAG}" CACHE PATH "")
endif()
set(GTSAM_EIGENCY_INSTALL_PATH ${GTSAM_CYTHON_INSTALL_PATH}/gtsam_eigency) set(GTSAM_EIGENCY_INSTALL_PATH ${GTSAM_CYTHON_INSTALL_PATH}/gtsam_eigency)
add_subdirectory(cython ${GTSAM_CYTHON_INSTALL_PATH}) add_subdirectory(cython ${GTSAM_CYTHON_INSTALL_PATH})
else() else()