pylonsrc: handle warnings

This commit is contained in:
mrstecklo
2021-02-03 11:19:30 +03:00
committed by joshdoe
parent c289ab079b
commit f740eed949
2 changed files with 14 additions and 13 deletions

View File

@@ -25,6 +25,12 @@ target_link_libraries (${libname}
${PYLON_LIBRARIES}
)
if(MSVC)
target_compile_options(${libname} PRIVATE /W4)
else()
target_compile_options(${libname} PRIVATE -Wall)
endif()
if (WIN32)
install (FILES $<TARGET_PDB_FILE:${libname}> DESTINATION ${PDB_INSTALL_DIR} COMPONENT pdb OPTIONAL)
endif ()