File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,14 @@ project(libsecp256k1
18
18
)
19
19
20
20
if (CMAKE_VERSION VERSION_LESS 3.21 )
21
+ # Emulates CMake 3.21+ behavior.
21
22
get_directory_property (parent_directory PARENT_DIRECTORY )
22
23
if (parent_directory )
23
- set (PROJECT_IS_TOP_LEVEL OFF CACHE INTERNAL "Emulates CMake 3.21+ behavior." )
24
- set (${PROJECT_NAME} _IS_TOP_LEVEL OFF CACHE INTERNAL "Emulates CMake 3.21+ behavior." )
24
+ set (PROJECT_IS_TOP_LEVEL OFF )
25
+ set (${PROJECT_NAME} _IS_TOP_LEVEL OFF )
25
26
else ()
26
- set (PROJECT_IS_TOP_LEVEL ON CACHE INTERNAL "Emulates CMake 3.21+ behavior." )
27
- set (${PROJECT_NAME} _IS_TOP_LEVEL ON CACHE INTERNAL "Emulates CMake 3.21+ behavior." )
27
+ set (PROJECT_IS_TOP_LEVEL ON )
28
+ set (${PROJECT_NAME} _IS_TOP_LEVEL ON )
28
29
endif ()
29
30
unset (parent_directory )
30
31
endif ()
You can’t perform that action at this time.
0 commit comments