Skip to content
Snippets Groups Projects
Commit a7bf910f authored by Pere Mato Vila's avatar Pere Mato Vila
Browse files

Thre is no option 'lzma' it should alsways be there (embbeded or external)

parent 371ba259
No related merge requests found
...@@ -181,13 +181,8 @@ if(NOT builtin_lzma) ...@@ -181,13 +181,8 @@ if(NOT builtin_lzma)
message(STATUS "Looking for LZMA") message(STATUS "Looking for LZMA")
find_package(LZMA) find_package(LZMA)
if(NOT LZMA_FOUND) if(NOT LZMA_FOUND)
if(fail-on-missing) message(STATUS "LZMA not found. Switching on builtin_lzma option")
message(FATAL_ERROR "LZMA not found and it is required ('fail-on-missing' enabled)." set(builtin_lzma ON CACHE BOOL "" FORCE)
"Alternatively, you can enable the option 'builtin_lzma' to build the LZMA library internally.")
else()
message(STATUS "LZMA not found. Switching on builtin_lzma option")
set(builtin_lzma ON CACHE BOOL "" FORCE)
endif()
endif() endif()
endif() endif()
if(builtin_lzma) if(builtin_lzma)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment