Skip to content

Commit bd85dcc

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
2 parents d68fe02 + db45e76 commit bd85dcc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,15 @@ further information.
5757

5858
cmake_minimum_required(VERSION 3.25...3.31)
5959

60-
if(CMAKE_SOURCE_DIR PATH_EQUAL CMAKE_BINARY_DIR)
60+
project(
61+
PhpBuildSystem
62+
VERSION 8.4
63+
DESCRIPTION "CMake-based PHP build system"
64+
HOMEPAGE_URL "https://github.com/petk/php-build-system"
65+
LANGUAGES NONE
66+
)
67+
68+
if(PROJECT_IS_TOP_LEVEL AND CMAKE_SOURCE_DIR PATH_EQUAL CMAKE_BINARY_DIR)
6169
message(
6270
FATAL_ERROR
6371
"In-source builds are disabled. Please, set the build directory.\n"
@@ -67,14 +75,6 @@ if(CMAKE_SOURCE_DIR PATH_EQUAL CMAKE_BINARY_DIR)
6775
)
6876
endif()
6977

70-
project(
71-
PhpBuildSystem
72-
VERSION 8.4
73-
DESCRIPTION "CMake-based PHP build system"
74-
HOMEPAGE_URL "https://github.com/petk/php-build-system"
75-
LANGUAGES NONE
76-
)
77-
7878
# Configuration.
7979
block(PROPAGATE phpUrl)
8080
set(

0 commit comments

Comments
 (0)