Commit 91dc50d0 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(CMakeLists.txt): define correctly optional include

parent 8fc9b5b9
...@@ -300,7 +300,7 @@ foreach (package ${QT5_PACKAGES_OPTIONAL}) ...@@ -300,7 +300,7 @@ foreach (package ${QT5_PACKAGES_OPTIONAL})
target_link_libraries(${TARGET_NAME} ${Qt5${package}_LIBRARIES}) target_link_libraries(${TARGET_NAME} ${Qt5${package}_LIBRARIES})
string(TOUPPER "${package}" INCLUDE_NAME) string(TOUPPER "${package}" INCLUDE_NAME)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_${INCLUDE_NAME}_ENABLED") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D${INCLUDE_NAME}_ENABLED")
else () else ()
message("Optional package ${package} not found.") message("Optional package ${package} not found.")
endif () endif ()
......
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