Skip to content

Commit

Permalink
check windows build3
Browse files Browse the repository at this point in the history
  • Loading branch information
devbis committed Nov 26, 2023
1 parent 81d10b5 commit 8f1ac08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/TelinkSDK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ SET(TOOLCHAIN_BIN_DIR ${TOOLCHAIN_PREFIX}/bin)
SET(TOOLCHAIN_INC_DIR ${TOOLCHAIN_PREFIX}/include)
SET(TOOLCHAIN_LIB_DIR ${TOOLCHAIN_PREFIX}/lib)

IF(WIN32)
SET(TOOL_EXECUTABLE_SUFFIX ".exe")
SET(CMAKE_C_COMPILER_WORKS 1)
ENDIF()

IF(NOT CMAKE_C_COMPILER)
SET(CMAKE_C_COMPILER ${TOOLCHAIN_BIN_DIR}/${TARGET_PREFIX}gcc${TOOL_EXECUTABLE_SUFFIX})
ENDIF()
Expand Down

0 comments on commit 8f1ac08

Please sign in to comment.