Skip to content

Commit

Permalink
Merge pull request #773 from KNX-IOT/port-disable
Browse files Browse the repository at this point in the history
cmake option for disabling the port
  • Loading branch information
WAvdBeek authored Feb 29, 2024
2 parents 569b105 + aaad2f7 commit 9f16515
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ option(ENABLE_PROGRAMS "Build mbed TLS programs." OFF)
option(ENABLE_TESTING "Build mbed TLS tests." OFF)
option(BUILD_TESTING "Build KNX tests" OFF)

option(OC_BUILD_PORT "Whether to build the ports for Windows & Linux" ON)
mark_as_advanced(OC_BUILD_PORT)

#set(OC_SECURITY_ENABLED ON CACHE BOOL "Enable security")

set(OC_DNS_SD_ENABLED OFF CACHE BOOL "Enable DNS SD")
Expand Down Expand Up @@ -323,7 +326,9 @@ if (CMAKE_BUILD_TYPE STREQUAL "Coverage")
SET(CMAKE_C_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage")
endif() #CMAKE_BUILD_TYPE STREQUAL "Coverage"

add_subdirectory(port)
if (OC_BUILD_PORT)
add_subdirectory(port)
endif()
add_subdirectory(apps)
add_subdirectory(deps)

Expand Down

0 comments on commit 9f16515

Please sign in to comment.