Skip to content

Commit 458ebb5

Browse files
authored
Use target cmake variables instead of host variables
1 parent 62d9f8e commit 458ebb5

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
@@ -29,8 +29,8 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
2929
project(Flang)
3030
endif()
3131

32-
set(TARGET_OS ${CMAKE_HOST_SYSTEM_NAME} CACHE STRING "Target OS")
33-
set(TARGET_ARCHITECTURE ${CMAKE_HOST_SYSTEM_PROCESSOR} CACHE STRING "Target Architecture")
32+
set(TARGET_OS ${CMAKE_SYSTEM_NAME} CACHE STRING "Target OS")
33+
set(TARGET_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR} CACHE STRING "Target Architecture")
3434

3535
if (POLICY CMP0054)
3636
cmake_policy(SET CMP0054 NEW)

0 commit comments

Comments
 (0)