Added install in debug mode.

This commit is contained in:
Anne de Jong 2018-12-30 20:16:01 +01:00
parent acd28780f2
commit 1bd5d9b016
1 changed files with 8 additions and 2 deletions

View File

@ -28,7 +28,6 @@ else()
add_definitions(-DLASP_FLOAT=32)
endif(LASP_FLOAT STREQUAL "double")
if(NOT DEFINED LASP_DEBUG)
message(FATAL_ERROR "LASP_DEBUG flag not defined. Please set -DLASP_DEBUG=TRUE
or -DLASP_DEBUG=FALSE")
@ -124,4 +123,11 @@ add_custom_command(OUTPUT ${OUTPUT}
add_custom_target(target ALL DEPENDS ${OUTPUT})
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} install)")
if(DEFINED INSTALL_DEBUG)
set(EXTRA_SETUP_ARG --user -e)
else()
set(EXTRA_SETUP_ARG "")
endif()
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m pip install ${EXTRA_SETUP_ARG} .)")