CMake: wrong build target directory
问题 System : Linux anon-S 3.19.0-31-generic #36~14.04.1-Ubuntu SMP Thu Oct 8 10:21:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux CMake Version : anon@anon-S:~/$ cmake --version cmake version 3.2.2 Main CMakeLists.txt : cmake_minimum_required(VERSION 3.0) set(CMAKE_CXX_STANDARD 11) add_subdirectory(${PROJECT_SOURCE_DIR}/src) add_subdirectory(${PROJECT_SOURCE_DIR}/test) But anon@anon-S:/home/anon/project/build$ cmake .. -- Configuring done -- Generating done -- Build files have been written to: /home