We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4155e62 commit cae9a7aCopy full SHA for cae9a7a
CMakeLists.txt
@@ -18,13 +18,14 @@ project(libsecp256k1
18
)
19
20
if(CMAKE_VERSION VERSION_LESS 3.21)
21
+ # Emulates CMake 3.21+ behavior.
22
get_directory_property(parent_directory PARENT_DIRECTORY)
23
if(parent_directory)
- 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.")
+ set(PROJECT_IS_TOP_LEVEL OFF)
25
+ set(${PROJECT_NAME}_IS_TOP_LEVEL OFF)
26
else()
- 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.")
+ set(PROJECT_IS_TOP_LEVEL ON)
28
+ set(${PROJECT_NAME}_IS_TOP_LEVEL ON)
29
endif()
30
unset(parent_directory)
31
0 commit comments