File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,15 @@ further information.
57
57
58
58
cmake_minimum_required (VERSION 3.25...3.31 )
59
59
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 )
61
69
message (
62
70
FATAL_ERROR
63
71
"In-source builds are disabled. Please, set the build directory.\n "
@@ -67,14 +75,6 @@ if(CMAKE_SOURCE_DIR PATH_EQUAL CMAKE_BINARY_DIR)
67
75
)
68
76
endif ()
69
77
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
-
78
78
# Configuration.
79
79
block (PROPAGATE phpUrl )
80
80
set (
You can’t perform that action at this time.
0 commit comments