You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (NOTWIN32) # WIN32=1 is target platform is Windows
271
+
add_custom_target(${GTSAM_PYTHON_INSTALL_TARGET}
272
+
COMMAND stubgen -q -p gtsam && cp -a out/gtsam/ gtsam && ${PYTHON_EXECUTABLE} -c "import sys, subprocess; cmd = [sys.executable, '-m', 'pip', 'install']; has_venv = hasattr(sys, 'real_prefix') or (hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix); cmd.append('--user' if not has_venv else ''); cmd.append('.'); subprocess.check_call([c for c in cmd if c])"
273
+
DEPENDS${GTSAM_PYTHON_DEPENDENCIES}
274
+
WORKING_DIRECTORY${GTSAM_PYTHON_BUILD_DIRECTORY}
275
+
VERBATIM)
276
+
else()
277
+
#TODO(Varun) Find equivalent cp on Windows
278
+
add_custom_target(${GTSAM_PYTHON_INSTALL_TARGET}
269
279
COMMAND${PYTHON_EXECUTABLE} -c "import sys, subprocess; cmd = [sys.executable, '-m', 'pip', 'install']; has_venv = hasattr(sys, 'real_prefix') or (hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix); cmd.append('--user' if not has_venv else ''); cmd.append('.'); subprocess.check_call([c for c in cmd if c])"
270
280
DEPENDS${GTSAM_PYTHON_DEPENDENCIES}
271
281
WORKING_DIRECTORY${GTSAM_PYTHON_BUILD_DIRECTORY}
272
282
VERBATIM)
273
-
274
-
# if (NOT WIN32) # WIN32=1 is target platform is Windows
0 commit comments