Skip to content
Snippets Groups Projects
Commit b5dcf280 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Bug 1310: Suppress compiler warnings from PVSS headers in PVSS-dependent packages

parent 077e0928
No related branches found
No related tags found
No related merge requests found
......@@ -112,17 +112,16 @@ if(NOT PVSS_FOUND)
find_package_handle_standard_args(PVSS DEFAULT_MSG ${pvss_check_list})
# Now it's time to fill the non-cached variables
set(PVSS_DEFINITIONS)
foreach(def ${pvss_definitions})
set(PVSS_DEFINITIONS "${PVSS_DEFINITIONS} ${def}")
endforeach(def ${pvss_definitions})
set(PVSS_INCLUDE_DIRS)
foreach(dir ${pvss_include_dirs})
list(APPEND PVSS_INCLUDE_DIRS ${PVSS_INCLUDE_DIR}/${dir})
endforeach(dir ${pvss_include_dirs})
set(PVSS_LIBRARIES)
foreach(lib ${pvss_libraries})
list(APPEND PVSS_LIBRARIES ${PVSS_${lib}_LIBRARY})
endforeach(lib ${pvss_libraries})
if(PVSS_FOUND)
foreach(def ${pvss_definitions})
set(PVSS_DEFINITIONS "${PVSS_DEFINITIONS} ${def}")
endforeach(def ${pvss_definitions})
foreach(dir ${pvss_include_dirs})
list(APPEND PVSS_INCLUDE_DIRS ${PVSS_INCLUDE_DIR}/${dir})
endforeach(dir ${pvss_include_dirs})
foreach(lib ${pvss_libraries})
list(APPEND PVSS_LIBRARIES ${PVSS_${lib}_LIBRARY})
endforeach(lib ${pvss_libraries})
endif(PVSS_FOUND)
endif(NOT PVSS_FOUND)
set(PVSS_ROOT_DIR /opt/pvss/pvss2_v3.7)
set(PVSS_DEFINITIONS "-Wno-deprecated -Wno-extra -Wno-overloaded-virtual")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment