The CMAKE_BUILD_TYPE variable only makes sense for single-configuration generators (such as Makefile or Ninja) and is not used for IDE type generators. You should rather look for CMAKE_CONFIGURATION_TYPES as well as CMAKE_CFG_INTDIR.
Greetings, Kai http://kai-wolf.me http://effective-cmake.com > Am 20.12.2018 um 12:09 schrieb Romain LEGUAY <romain.leg...@gmail.com>: > > Hello everyone, > > I'm trying to build VTK and ITK along my project. > > For now, I use the trick to add an option to build VTK and ITK only once > using ExternalProject_Add for all my dependencies and also for my project. > > This works great on Unix system but with a VS solution, the dependencies are > not rebuilt when I change CMAKE_BUILD_TYPE. > > Is it possible to know if CMAKE_BUILD_TYPE is changed? It will permit me to > switch on the option to rebuild the dependencies. > > Anyone as other better ideas? > > Thank you > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake
signature.asc
Description: Message signed with OpenPGP
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake