Skip to content

Commit

Permalink
Explicitly state FindOpenSCAP cmake so it loads before it's used.
Browse files Browse the repository at this point in the history
Sometimes it could happen that the OSCAP_VERSION was being used without
being defined first. This makes sure that whenever the variables are
attempted to be used, they are defined.

Fix a problem where cmake would define --schematron option even if the
OSCAP would be greater or equal than 1.3.5.
  • Loading branch information
ggbecker committed Oct 24, 2024
1 parent 12604c7 commit f2b9755
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
set(CMAKE_INSTALL_LIBDIR "/nowhere")
include(GNUInstallDirs)
include(CMakeDependentOption)
include(FindOpenSCAP)
include(FindPythonModule)
include(SSGCommon)

Expand Down

0 comments on commit f2b9755

Please sign in to comment.