diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cf0cf4..1229e3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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