Skip to content
  • Bill Hoffman's avatar
    Fix the case where cmake --build failed with two project cmds in one file. · 5badf5f7
    Bill Hoffman authored and Brad King's avatar Brad King committed
    This adds a test that uses two project commands in the same CMakeLists.txt
    file.  It also adds a fix so that cmake --build will work in that case.
    The fix sets the name of the last project command in the top level
    CMakeLists.txt in the cache variable CMAKE_PROJECT_NAME.  This variable
    is used by cmake --build to find the project name.
    5badf5f7