Skip to content
  • NAKAMURA Takumi's avatar
    [CMake][Lit][unittests] Deprecate CMAKE_BUILD_TYPE in each build directory for unittests. · 61a8f974
    NAKAMURA Takumi authored
    For example,
    cur) unittests/ADT/Release/ADTTests
    new) unittests/ADT/ADTTests
    
    RUNTIME_BUILD_MODE can be substituted to CMAKE_CFG_INTDIR.
    
    With Make and Ninja, the tree is not built with multiple configurations.
    Then, including the build type in target directory doesn't make sense.
    See also "How can I build multiple modes without switching?"
    http://www.cmake.org/Wiki/CMake_FAQ
    CMAKE_CFG_INTDIR is set to "."
    
    With multiple-configuration-aware build system, like Visual Studio, each unittest is built on appropriate directory, for example,
    unittests/ADT/Release/ADTTests.exe
    CMAKE_CFG_INTDIR is set to build system's variable, like "$(Configuration)" or "$(OutDir)".
    
    Thus, "--param build_config" is also deprecated.
    
    llvm-svn: 173616
    61a8f974
Loading