mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-23 19:07:55 +00:00
build: CMAKE_BUILD_TYPE is "release" by default, otherwise it can only be "debug"
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
committed by
Leo Di Donato
parent
e1c2cac9c9
commit
88503a1ea9
@@ -25,8 +25,12 @@ if(NOT DEFINED FALCO_ETC_DIR)
|
|||||||
set(FALCO_ETC_DIR "/etc/falco")
|
set(FALCO_ETC_DIR "/etc/falco")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE)
|
||||||
SET(CMAKE_BUILD_TYPE Release)
|
if (CMAKE_BUILD_TYPE STREQUAL "debug")
|
||||||
|
set(KBUILD_FLAGS "${DRAIOS_DEBUG_FLAGS} ${DRAIOS_FEATURE_FLAGS}")
|
||||||
|
else()
|
||||||
|
set(CMAKE_BUILD_TYPE "release")
|
||||||
|
set(KBUILD_FLAGS "${DRAIOS_FEATURE_FLAGS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT DRAIOS_DEBUG_FLAGS)
|
if(NOT DRAIOS_DEBUG_FLAGS)
|
||||||
@@ -55,12 +59,6 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|||||||
add_definitions(-DHAS_CAPTURE)
|
add_definitions(-DHAS_CAPTURE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
||||||
set(KBUILD_FLAGS "${DRAIOS_DEBUG_FLAGS} ${DRAIOS_FEATURE_FLAGS}")
|
|
||||||
else()
|
|
||||||
set(KBUILD_FLAGS "${DRAIOS_FEATURE_FLAGS}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(PACKAGE_NAME "falco")
|
set(PACKAGE_NAME "falco")
|
||||||
set(PROBE_VERSION "${FALCO_VERSION}")
|
set(PROBE_VERSION "${FALCO_VERSION}")
|
||||||
set(PROBE_NAME "falco-probe")
|
set(PROBE_NAME "falco-probe")
|
||||||
|
Reference in New Issue
Block a user