Skip to content

Commit fa9b40d

Browse files
committed
Use target cmake variables instead of host variables
1 parent b3da820 commit fa9b40d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
1919
project(Flang)
2020
endif()
2121

22-
set(TARGET_OS ${CMAKE_HOST_SYSTEM_NAME} CACHE STRING "Target OS")
23-
set(TARGET_ARCHITECTURE ${CMAKE_HOST_SYSTEM_PROCESSOR} CACHE STRING "Target Architecture")
22+
set(TARGET_OS ${CMAKE_SYSTEM_NAME} CACHE STRING "Target OS")
23+
set(TARGET_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR} CACHE STRING "Target Architecture")
2424

2525
if (POLICY CMP0054)
2626
cmake_policy(SET CMP0054 NEW)

0 commit comments

Comments
 (0)