CMake: print absolute CMakeCache.txt
authorCampbell Barton <ideasman42@gmail.com>
Thu, 15 Jun 2017 21:38:20 +0000 (07:38 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 15 Jun 2017 21:38:20 +0000 (07:38 +1000)
Message didn't show the path of the file to remove
which could be confusing.

CMakeLists.txt

index 66ee215864dab3d15b2a277ac7be85f791dd85ce..e7917278434e55d8d96b6f703bd9dd0024f47d4c 100644 (file)
@@ -32,7 +32,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
        if(NOT DEFINED WITH_IN_SOURCE_BUILD)
                message(FATAL_ERROR
                        "CMake generation for blender is not allowed within the source directory!"
-                       "\n Remove the CMakeCache.txt file and try again from another folder, e.g.:"
+                       "\n Remove \"${CMAKE_SOURCE_DIR}/CMakeCache.txt\" and try again from another folder, e.g.:"
                        "\n "
                        "\n rm CMakeCache.txt"
                        "\n cd .."