Disabling polyscope only in release mode

This commit is contained in:
iasonmanolas 2021-03-22 21:29:42 +02:00
parent 533a0e1a65
commit 4c0c5307b9
1 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,11 @@ set(EXTERNAL_DEPS_DIR "/home/iason/Coding/build/external dependencies")
file(MAKE_DIRECTORY ${EXTERNAL_DEPS_DIR})
##Polyscope
set(USE_POLYSCOPE TRUE)
if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
set(USE_POLYSCOPE FALSE)
else()
set(USE_POLYSCOPE TRUE)
endif()
if(${USE_POLYSCOPE})
download_project(PROJ POLYSCOPE
GIT_REPOSITORY https://github.com/nmwsharp/polyscope.git