Skip to content

Commit e2cf068

Browse files
committed
better features.json
1 parent 9fcbf36 commit e2cf068

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cmake/features.cmake

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ endforeach()
1717
string(JSON j SET ${j} compiler "{}")
1818
string(JSON j SET ${j} compiler vendor \"${CMAKE_Fortran_COMPILER_ID}\")
1919
string(JSON j SET ${j} compiler version \"${CMAKE_Fortran_COMPILER_VERSION}\")
20-
string(JSON j SET ${j} compiler system \"${CMAKE_SYSTEM_NAME}\")
21-
string(JSON j SET ${j} compiler system_version \"${CMAKE_SYSTEM_VERSION}\")
22-
string(JSON j SET ${j} compiler target \"${CMAKE_SYSTEM_PROCESSOR}\")
2320
string(JSON j SET ${j} compiler flags \"${CMAKE_Fortran_FLAGS}\")
24-
string(JSON j SET ${j} compiler sysroot \"${CMAKE_OSX_SYSROOT}\")
21+
22+
string(JSON j SET ${j} platform "{}")
23+
string(JSON j SET ${j} platform system \"${CMAKE_SYSTEM_NAME}\")
24+
string(JSON j SET ${j} platform system_version \"${CMAKE_SYSTEM_VERSION}\")
25+
string(JSON j SET ${j} platform target_arch \"${CMAKE_SYSTEM_PROCESSOR}\")
26+
string(JSON j SET ${j} platform sysroot \"${CMAKE_OSX_SYSROOT}\")
2527
2628
set(feature_file ${CMAKE_CURRENT_BINARY_DIR}/features.json)
2729

0 commit comments

Comments
 (0)