Merge branch 'check-right-cxx-variable' into 'master'

Check right cxx variable

See merge request libtiff/libtiff!19
This commit is contained in:
Even Rouault 2018-02-06 18:43:25 +00:00
commit 781bdb7263

View File

@ -138,7 +138,7 @@ install(TARGETS tiff
install(FILES ${tiff_HEADERS} ${nodist_tiff_HEADERS}
DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
if(cxx)
if(CXX_SUPPORT)
add_library(tiffxx ${tiffxx_SOURCES} ${tiffxx_HEADERS})
target_link_libraries(tiffxx tiff)
set_target_properties(tiffxx PROPERTIES SOVERSION ${SO_COMPATVERSION})