Skip to content

Commit 96ebec4

Browse files
committed
Fix CMake script logic for ANDROID condition and adjust formatting in Findnlohmann_json.cmake
1 parent df5af91 commit 96ebec4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

attachments/CMake/Findnlohmann_json.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if(NOT nlohmann_json_INCLUDE_DIR)
6060
if(NOT nlohmann_json_POPULATED)
6161
FetchContent_Populate(nlohmann_json)
6262

63-
if(android)
63+
if(ANDROID)
6464
# Update the minimum required CMake version before including the CMakeLists.txt
6565
file(READ "${nlohmann_json_SOURCE_DIR}/CMakeLists.txt" NLOHMANN_JSON_CMAKE_CONTENT)
6666
string(REPLACE "cmake_minimum_required(VERSION 3.1"
@@ -115,7 +115,7 @@ endif()
115115

116116
# Set the variables
117117
include(FindPackageHandleStandardArgs)
118-
find_package_handle_standard_args(nlohmann_json
118+
find_package_handle_standard_args(nlohmann_json
119119
REQUIRED_VARS nlohmann_json_INCLUDE_DIR
120120
)
121121

0 commit comments

Comments
 (0)