Skip to content

Commit

Permalink
Update sos-toolchain.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-gilbert committed Jul 30, 2020
1 parent f80273b commit 4f5a25a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmake/sos-toolchain.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@

if( ${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" )
set(CMAKE_MAKE_PROGRAM "C:/StratifyLabs-SDK/Tools/gcc/bin/make.exe")
set(CMAKE_SET_GENERATOR "MinGW Makefiles" CACHE INTERNAL "cmake generator mingw makefiles")
endif()

set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR arm)
Expand Down Expand Up @@ -32,6 +28,12 @@ else()
endif()
endif()

if( ${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" )
set(CMAKE_MAKE_PROGRAM "${SOS_SDK_PATH}/Tools/gcc/bin/make.exe")
set(TOOLCHAIN_EXEC_SUFFIX ".exe")
endif()


if(TOOLCHAIN_HOST) # <--- Use 'BOOST_DIR', not 'DEFINED ${BOOST_DIR}'
MESSAGE(STATUS "User provided toolchain directory " ${TOOLCHAIN_HOST})
else()
Expand Down

0 comments on commit 4f5a25a

Please sign in to comment.