Skip to content

Commit 48fbdec

Browse files
committed
set CMAKE_SYSTEM_PROCESSOR if not set
1 parent 8310955 commit 48fbdec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
cmake_minimum_required (VERSION 3.5)
22
project (webrtc-streamer)
33

4+
# Set CMAKE_SYSTEM_PROCESSOR if not already set (for native builds)
5+
if(NOT CMAKE_SYSTEM_PROCESSOR)
6+
set(CMAKE_SYSTEM_PROCESSOR ${CMAKE_HOST_SYSTEM_PROCESSOR})
7+
endif()
8+
49
set (WEBRTCROOT "${CMAKE_CURRENT_SOURCE_DIR}/../webrtc" CACHE STRING "WEBRTC root directory")
510
set (WEBRTCDESKTOPCAPTURE "ON" CACHE STRING "WEBRTC Desktop capture")
611
set (WEBRTCCHROMEBRANDED "ON" CACHE STRING "WEBRTC Chrome branded")
712
set (WEBRTCVERSION "62f5e2318d617abaa1f479422a4c6892c14e56a3" CACHE STRING "WEBRTC version")
813
set (WEBRTCSTREAMERRESSOURCE "./html" CACHE STRING "WEBRTC ressource directory")
914

1015
if(NOT CMAKE_BUILD_TYPE)
11-
set (CMAKE_BUILD_TYPE "Release")
16+
set (CMAKE_BUILD_TYPE "Release")
1217
endif()
1318
MESSAGE("CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}\nWEBRTCROOT = ${WEBRTCROOT}\nWEBRTCDESKTOPCAPTURE= ${WEBRTCDESKTOPCAPTURE}\nCMAKE_CXX_COMPILER_ID=${CMAKE_CXX_COMPILER_ID}\nWEBRTCVERSION=${WEBRTCVERSION}")
1419

0 commit comments

Comments
 (0)