@@ -10,13 +10,13 @@ endif()
10
10
11
11
project (scap-security-guide NONE)
12
12
13
- set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR} /cmake" )
13
+ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR} /cmake" )
14
14
# This is set to silence GNUInstallDirs warning about no language being used with cmake
15
15
set (CMAKE_INSTALL_LIBDIR "/nowhere" )
16
16
include (GNUInstallDirs)
17
17
include (FindPythonModule)
18
18
19
- if ( "$ENV{PYTHONPATH} " STREQUAL "" )
19
+ if ( "$ENV{PYTHONPATH} " STREQUAL "" )
20
20
set (ENV{PYTHONPATH} "${PROJECT_SOURCE_DIR} " )
21
21
else ()
22
22
set (ENV{PYTHONPATH} "${PROJECT_SOURCE_DIR} :$ENV{PYTHONPATH} " )
@@ -114,7 +114,7 @@ message(STATUS "")
114
114
115
115
# Strictly speaking in-source will work but will be very messy, let's
116
116
# discourage our users from using them
117
- if ("${CMAKE_SOURCE_DIR} " STREQUAL "${CMAKE_BINARY_DIR} " )
117
+ if ("${CMAKE_SOURCE_DIR} " STREQUAL "${CMAKE_BINARY_DIR} " )
118
118
message (FATAL_ERROR "In-source builds are not supported! Please use out of source builds:\n "
119
119
"$ cd content\n "
120
120
"$ rm CMakeCache.txt\n "
@@ -151,28 +151,28 @@ cmake_dependent_option(ENABLE_PYTHON_COVERAGE "Enable Python tests with coverage
151
151
152
152
find_package (OpenSCAP REQUIRED)
153
153
154
- if (NOT SSG_TARGET_OVAL_VERSION VERSION_EQUAL "5.11" )
154
+ if (NOT SSG_TARGET_OVAL_VERSION VERSION_EQUAL "5.11" )
155
155
message (WARNING "You are targetting OVAL version ${SSG_TARGET_OVAL_VERSION} . In SSG we support/test 5.11 only!" )
156
156
endif ()
157
157
158
158
# OCP4 requires non-standard extensions. Vanilla OpenSCAP 1.2 doesn't support
159
159
# it. See also: https://github.com/ComplianceAsCode/content/issues/6798
160
- if ("${OSCAP_VERSION} " VERSION_LESS "1.3.4" AND SSG_PRODUCT_OCP4)
160
+ if ("${OSCAP_VERSION} " VERSION_LESS "1.3.4" AND SSG_PRODUCT_OCP4)
161
161
set (SSG_PRODUCT_OCP4 OFF )
162
162
message (WARNING "Won't build OCP4 content as it requires an OpenSCAP version with OCP4 support. See also: https://github.com/ComplianceAsCode/content/issues/6798. n.b.: if 1.3.4 fails to build OCP4 content, please update to 1.3.5" )
163
163
endif ()
164
164
165
165
# EKS requires non-standard extensions. Vanilla OpenSCAP 1.2 doesn't support
166
166
# it. See also: https://github.com/ComplianceAsCode/content/issues/6798
167
- if ("${OSCAP_VERSION} " VERSION_LESS "1.3.4" AND SSG_PRODUCT_EKS)
167
+ if ("${OSCAP_VERSION} " VERSION_LESS "1.3.4" AND SSG_PRODUCT_EKS)
168
168
set (SSG_PRODUCT_EKS OFF )
169
169
message (WARNING "Won't build EKS content as it requires an OpenSCAP version with EKS support. See also: https://github.com/ComplianceAsCode/content/issues/6798. n.b.: if 1.3.4 fails to build EKS content, please update to 1.3.5" )
170
170
endif ()
171
171
172
172
173
- if (SSG_JINJA2_CACHE_ENABLED)
173
+ if (SSG_JINJA2_CACHE_ENABLED)
174
174
file (MAKE_DIRECTORY "${SSG_JINJA2_CACHE_DIR} " )
175
- if (NOT EXISTS "${SSG_JINJA2_CACHE_DIR} " )
175
+ if (NOT EXISTS "${SSG_JINJA2_CACHE_DIR} " )
176
176
message (FATAL_ERROR "jinja2 cache dir was set to '${SSG_JINJA2_CACHE_DIR} '. This directory doesn't seem to exist and attempt to create it has failed." )
177
177
endif ()
178
178
set (SSG_JINJA2_CACHE_ENABLED_BOOL "true" )
@@ -181,17 +181,17 @@ else()
181
181
endif ()
182
182
183
183
find_program (XSLTPROC_EXECUTABLE NAMES xsltproc)
184
- if (NOT XSLTPROC_EXECUTABLE)
184
+ if (NOT XSLTPROC_EXECUTABLE)
185
185
message (SEND_ERROR "xsltproc is required!" )
186
186
endif ()
187
187
188
188
find_program (XMLLINT_EXECUTABLE NAMES xmllint)
189
- if (NOT XMLLINT_EXECUTABLE)
189
+ if (NOT XMLLINT_EXECUTABLE)
190
190
message (SEND_ERROR "xmllint is required!" )
191
191
endif ()
192
192
193
193
find_program (SED_EXECUTABLE NAMES sed)
194
- if (NOT SED_EXECUTABLE)
194
+ if (NOT SED_EXECUTABLE)
195
195
message (SEND_ERROR "sed is required!" )
196
196
endif ()
197
197
@@ -250,7 +250,7 @@ message(STATUS "Separate SCAP files: ${SSG_SEPARATE_SCAP_FILES_ENABLED}")
250
250
message (STATUS "Ansible Playbooks: ${SSG_ANSIBLE_PLAYBOOKS_ENABLED} " )
251
251
message (STATUS "Ansible Playbooks Per Rule: ${SSG_ANSIBLE_PLAYBOOKS_PER_RULE_ENABLED} " )
252
252
message (STATUS "Bash scripts: ${SSG_BASH_SCRIPTS_ENABLED} " )
253
- if (SSG_JINJA2_CACHE_ENABLED)
253
+ if (SSG_JINJA2_CACHE_ENABLED)
254
254
message (STATUS "jinja2 cache: enabled" )
255
255
message (STATUS "jinja2 cache dir: ${SSG_JINJA2_CACHE_DIR} " )
256
256
else ()
@@ -325,89 +325,89 @@ endif()
325
325
326
326
ssg_build_man_page()
327
327
328
- if (SSG_PRODUCT_ALINUX2)
328
+ if (SSG_PRODUCT_ALINUX2)
329
329
add_subdirectory ("products/alinux2" "alinux2" )
330
330
endif ()
331
- if (SSG_PRODUCT_ALINUX3)
331
+ if (SSG_PRODUCT_ALINUX3)
332
332
add_subdirectory ("products/alinux3" "alinux3" )
333
333
endif ()
334
- if (SSG_PRODUCT_ANOLIS8)
334
+ if (SSG_PRODUCT_ANOLIS8)
335
335
add_subdirectory ("products/anolis8" "anolis8" )
336
336
endif ()
337
- if (SSG_PRODUCT_CHROMIUM)
337
+ if (SSG_PRODUCT_CHROMIUM)
338
338
add_subdirectory ("products/chromium" "chromium" )
339
339
endif ()
340
340
341
- if (SSG_PRODUCT_DEBIAN10)
341
+ if (SSG_PRODUCT_DEBIAN10)
342
342
add_subdirectory ("products/debian10" "debian10" )
343
343
endif ()
344
- if (SSG_PRODUCT_DEBIAN11)
344
+ if (SSG_PRODUCT_DEBIAN11)
345
345
add_subdirectory ("products/debian11" "debian11" )
346
346
endif ()
347
- if (SSG_PRODUCT_EXAMPLE)
347
+ if (SSG_PRODUCT_EXAMPLE)
348
348
add_subdirectory ("products/example" "example" )
349
349
endif ()
350
- if (SSG_PRODUCT_EKS)
350
+ if (SSG_PRODUCT_EKS)
351
351
add_subdirectory ("products/eks" "eks" )
352
352
endif ()
353
- if (SSG_PRODUCT_FEDORA)
353
+ if (SSG_PRODUCT_FEDORA)
354
354
add_subdirectory ("products/fedora" "fedora" )
355
355
endif ()
356
- if (SSG_PRODUCT_FIREFOX)
356
+ if (SSG_PRODUCT_FIREFOX)
357
357
add_subdirectory ("products/firefox" "firefox" )
358
358
endif ()
359
- if (SSG_PRODUCT_MACOS1015)
359
+ if (SSG_PRODUCT_MACOS1015)
360
360
add_subdirectory ("products/macos1015" "macos1015" )
361
361
endif ()
362
- if (SSG_PRODUCT_OCP4)
362
+ if (SSG_PRODUCT_OCP4)
363
363
add_subdirectory ("products/ocp4" "ocp4" )
364
364
endif ()
365
- if (SSG_PRODUCT_RHCOS4)
365
+ if (SSG_PRODUCT_RHCOS4)
366
366
add_subdirectory ("products/rhcos4" "rhcos4" )
367
367
endif ()
368
- if (SSG_PRODUCT_OL7)
368
+ if (SSG_PRODUCT_OL7)
369
369
add_subdirectory ("products/ol7" "ol7" )
370
370
endif ()
371
- if (SSG_PRODUCT_OL8)
371
+ if (SSG_PRODUCT_OL8)
372
372
add_subdirectory ("products/ol8" "ol8" )
373
373
endif ()
374
- if (SSG_PRODUCT_OL9)
374
+ if (SSG_PRODUCT_OL9)
375
375
add_subdirectory ("products/ol9" "ol9" )
376
376
endif ()
377
- if (SSG_PRODUCT_OPENSUSE)
377
+ if (SSG_PRODUCT_OPENSUSE)
378
378
add_subdirectory ("products/opensuse" "opensuse" )
379
379
endif ()
380
- if (SSG_PRODUCT_RHEL7)
380
+ if (SSG_PRODUCT_RHEL7)
381
381
add_subdirectory ("products/rhel7" "rhel7" )
382
382
endif ()
383
- if (SSG_PRODUCT_RHEL8)
383
+ if (SSG_PRODUCT_RHEL8)
384
384
add_subdirectory ("products/rhel8" "rhel8" )
385
385
endif ()
386
- if (SSG_PRODUCT_RHEL9)
386
+ if (SSG_PRODUCT_RHEL9)
387
387
add_subdirectory ("products/rhel9" "rhel9" )
388
388
endif ()
389
- if (SSG_PRODUCT_RHV4)
389
+ if (SSG_PRODUCT_RHV4)
390
390
add_subdirectory ("products/rhv4" "rhv4" )
391
391
endif ()
392
- if (SSG_PRODUCT_SLE12)
392
+ if (SSG_PRODUCT_SLE12)
393
393
add_subdirectory ("products/sle12" "sle12" )
394
394
endif ()
395
- if (SSG_PRODUCT_SLE15)
395
+ if (SSG_PRODUCT_SLE15)
396
396
add_subdirectory ("products/sle15" "sle15" )
397
397
endif ()
398
- if (SSG_PRODUCT_UBUNTU1604)
398
+ if (SSG_PRODUCT_UBUNTU1604)
399
399
add_subdirectory ("products/ubuntu1604" "ubuntu1604" )
400
400
endif ()
401
- if (SSG_PRODUCT_UBUNTU1804)
401
+ if (SSG_PRODUCT_UBUNTU1804)
402
402
add_subdirectory ("products/ubuntu1804" "ubuntu1804" )
403
403
endif ()
404
- if (SSG_PRODUCT_UBUNTU2004)
404
+ if (SSG_PRODUCT_UBUNTU2004)
405
405
add_subdirectory ("products/ubuntu2004" "ubuntu2004" )
406
406
endif ()
407
- if (SSG_PRODUCT_UBUNTU2204)
407
+ if (SSG_PRODUCT_UBUNTU2204)
408
408
add_subdirectory ("products/ubuntu2204" "ubuntu2204" )
409
409
endif ()
410
- if (SSG_PRODUCT_UOS20)
410
+ if (SSG_PRODUCT_UOS20)
411
411
add_subdirectory ("products/uos20" "uos20" )
412
412
endif ()
413
413
0 commit comments