fix if-else mistype

release/4.3a0
Varun Agrawal 2024-08-26 09:44:28 -04:00
parent da99cf0e19
commit 48f9d0b116
1 changed files with 2 additions and 2 deletions

View File

@ -264,12 +264,12 @@ if(GTSAM_UNSTABLE_BUILD_PYTHON)
endif()
# Add custom target so we can install with `make python-install`
if (NOT WIN32)
if (NOT WIN32) # WIN32=1 is target platform is Windows
add_custom_target(python-install
COMMAND stubgen -q -p gtsam && rsync -a \"out/gtsam/\" gtsam && ${PYTHON_EXECUTABLE} -m pip install --user .
DEPENDS ${GTSAM_PYTHON_DEPENDENCIES}
WORKING_DIRECTORY ${GTSAM_PYTHON_BUILD_DIRECTORY})
elseif()
else()
#TODO(Varun) Find rsync equivalent on Windows
add_custom_target(python-install
COMMAND ${PYTHON_EXECUTABLE} -m pip install --user .