Enabling the use of polyscope based on the build type

This commit is contained in:
iasonmanolas 2021-03-16 11:56:54 +02:00
parent 9884cd175f
commit 711e72551d
1 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,11 @@ file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/build/external)
#find_package(OpenMP REQUIRED)
##Polyscope
set(USE_POLYSCOPE FALSE)
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