Legends-of-Azeroth-Pandaria-5.4.8
24 строки · 961.0 Байт
1# Copyright (C) 2011-2016 Project SkyFire <http://www.projectskyfire.org/
2# Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3#
4# This file is free software; as a special exception the author gives
5# unlimited permission to copy and/or distribute it, with or without
6# modifications, as long as this notice is preserved.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
12#
13# Force out-of-source build
14#
15
16string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" BUILDING_IN_SOURCE)
17
18if( BUILDING_IN_SOURCE )
19message(FATAL_ERROR "
20This project requires an out of source build. Remove the file 'CMakeCache.txt'
21found in this directory before continuing, create a separate build directory
22and run 'cmake path_to_project [options]' from there.
23")
24endif()
25