You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 27, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: CMakeLists.txt
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -49,12 +49,8 @@ endif()
49
49
# Local scanning tools
50
50
option(SCAP_WORKBENCH_LOCAL_SCAN_ENABLED"If enabled, scanning of local machine is possible from workbench. Else the option is disabled in the GUI."TRUE)
51
51
52
-
option(SCAP_WORKBENCH_USE_LIBRARY_FOR_RESULT_BASED_REMEDIATION_ROLES_GENERATION"If enabled, result-based remediation roles will be generated by calls to the libopenscap library (instead of being generated by the oscap subprocess). Requires openscap>=1.2.16"FALSE)
53
-
54
-
if (SCAP_WORKBENCH_USE_LIBRARY_FOR_RESULT_BASED_REMEDIATION_ROLES_GENERATION)
55
-
if(${OPENSCAP_VERSION_MAJOR}LESS2AND${OPENSCAP_VERSION_MINOR}LESS3AND${OPENSCAP_VERSION_PATCH}LESS16) # i.e. oscap<1.2.16
56
-
message(FATAL_ERROR"Library-powered generation of result-based remediation roles is supported only if you have oscap>=1.2.16, whereas you have oscap==${OPENSCAP_VERSION}")
57
-
endif()
52
+
if(${OPENSCAP_VERSION_MAJOR}LESS2AND${OPENSCAP_VERSION_MINOR}LESS3AND${OPENSCAP_VERSION_PATCH}LESS16) # i.e. oscap<1.2.16
53
+
message(FATAL_ERROR"Library-powered generation of result-based remediation roles is supported only if you have oscap>=1.2.16, whereas you have oscap==${OPENSCAP_VERSION}")
58
54
endif()
59
55
60
56
find_program(NICE_EXECUTABLENAMESnice) # fully optional, local scan still available when missing
QString message = QObject::tr("The process that was supposed to generate remediations didn't finish on time (i.e. within %1 secs), so it was terminated.").arg(remediationGenerationTimeout / 1000);
0 commit comments