Skip to content

Commit

Permalink
CMAKE_SYSTEM_NAME --> CMAKE_HOST_SYSTEM_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
TeoGiane committed Oct 3, 2023
1 parent cc5b691 commit a6162e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (CCACHE_PROGRAM)
endif()

# On MacOS find clang, otherwise find gcc
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "Darwin")
find_program(CC clang REQUIRED)
find_program(CXX clang++ REQUIRED)
else()
Expand Down

0 comments on commit a6162e7

Please sign in to comment.