MaciejPatro / cmake-tidy

Project provides a set of tools that will ease the development process for code written in CMake.
MIT License
15 stars 0 forks source link

INCLUDES DESTINATION not treated correctly as keyword #64

Closed MaciejPatro closed 4 years ago

MaciejPatro commented 4 years ago

current:

                install(                                                                                                                                                                                                                                              
                        TARGETS                                                                                                                                                                                                                                       
                                ${TARGET}                                                                                                                                                                                                                             
                        EXPORT                                                                                                                                                                                                                                        
                                ${targets_export}                                                                                                                                                                                                                     
                        LIBRARY DESTINATION                                                                                                                                                                                                                           
                                ${CMAKE_INSTALL_LIBDIR}/${PACKAGING_SETTINGS_INSTALL_PREFIX}                                                                                                                                                                          
                        ARCHIVE DESTINATION                                                                                                                                                                                                                           
                                ${CMAKE_INSTALL_LIBDIR}/${PACKAGING_SETTINGS_INSTALL_PREFIX}                                                                                                                                                                          
                        RUNTIME DESTINATION                                                                                                                                                                                                                           
                                ${CMAKE_INSTALL_BINDIR}/${PACKAGING_SETTINGS_INSTALL_PREFIX}                                                                                                                                                                          
                                INCLUDES                                                                                                                                                                                                                              
                        DESTINATION
                                ${include_install_dir}
                )

expected:

                install(                                                                                                                                                                                                                                              
                        TARGETS                                                                                                                                                                                                                                       
                                ${TARGET}                                                                                                                                                                                                                             
                        EXPORT                                                                                                                                                                                                                                        
                                ${targets_export}                                                                                                                                                                                                                     
                        LIBRARY DESTINATION                                                                                                                                                                                                                           
                                ${CMAKE_INSTALL_LIBDIR}/${PACKAGING_SETTINGS_INSTALL_PREFIX}                                                                                                                                                                          
                        ARCHIVE DESTINATION                                                                                                                                                                                                                           
                                ${CMAKE_INSTALL_LIBDIR}/${PACKAGING_SETTINGS_INSTALL_PREFIX}                                                                                                                                                                          
                        RUNTIME DESTINATION                                                                                                                                                                                                                           
                                ${CMAKE_INSTALL_BINDIR}/${PACKAGING_SETTINGS_INSTALL_PREFIX}                                                                                                                                                                          
                        INCLUDES DESTINATION
                                ${include_install_dir}
                )