Skip to content
Permalink
Browse files

Updated cmake/modules/FindEnchant.cmake. Added version detection

  • Loading branch information...
Vitozz committed Sep 8, 2017
1 parent 8367c52 commit 41fbc7f04524104947572462a6937cb7556b3213
Showing with 8 additions and 1 deletion.
  1. +8 −1 cmake/modules/FindEnchant.cmake
@@ -75,7 +75,14 @@ find_package_handle_standard_args(
if ( Enchant_FOUND )
set ( Enchant_LIBRARIES ${Enchant_LIBRARY} )
set ( Enchant_INCLUDE_DIRS ${Enchant_INCLUDE_DIR} )
if(PC_Enchant_FOUND)
set ( Enchant_VERSION ${PC_Enchant_VERSION} )
endif()
endif ( Enchant_FOUND )

mark_as_advanced( Enchant_INCLUDE_DIR Enchant_LIBRARY )
if( Enchant_VERSION )
mark_as_advanced( Enchant_INCLUDE_DIR Enchant_LIBRARY Enchant_VERSION )
else ()
mark_as_advanced( Enchant_INCLUDE_DIR Enchant_LIBRARY )
endif()

0 comments on commit 41fbc7f

Please sign in to comment.
You can’t perform that action at this time.