Commit d2132483 authored by Ghislain MARY's avatar Ghislain MARY

Fix bc_generate_rpm_specfile CMake macro.

parent 5bcd5efb
......@@ -114,7 +114,7 @@ macro(bc_generate_rpm_specfile SOURCE DEST)
set(RPM_ALL_CMAKE_OPTIONS "")
foreach(_variableName ${_variableNames})
if(_variableName MATCHES "^ENABLE_")
if(_variableName)
if(${_variableName})
set(${_variableName} 1)
else()
set(${_variableName} 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment