Remove inclusion of many useless include_directories

v0.27.3
Luis Díaz Más 8 years ago committed by Luis Diaz Mas
parent 1c03767391
commit ee61c24459

@ -84,9 +84,6 @@ IF( EXIV2_ENABLE_COMMERCIAL )
SET (EXIV2_ENABLE_NLS OFF) SET (EXIV2_ENABLE_NLS OFF)
ENDIF() ENDIF()
# binary as first, since it workarounds old VS solution compatibility problems
INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src/ ${CMAKE_SOURCE_DIR}/include/ ${CMAKE_SOURCE_DIR}/include/exiv2/)
if( MSVC ) if( MSVC )
# cmake_policy(SET CMP0008) # cmake_policy(SET CMP0008)
ADD_DEFINITIONS(-DPSAPI_VERSION=1) # to be compatible with <= WinVista (#905) ADD_DEFINITIONS(-DPSAPI_VERSION=1) # to be compatible with <= WinVista (#905)

@ -246,6 +246,8 @@ IF ( UNIX )
ENDIF() ENDIF()
target_include_directories(exiv2lib PRIVATE ${CMAKE_SOURCE_DIR}/xmpsdk/include) target_include_directories(exiv2lib PRIVATE ${CMAKE_SOURCE_DIR}/xmpsdk/include)
# TODO : We should not include include/exiv2 but only include !!!
target_include_directories(exiv2lib PUBLIC ${CMAKE_SOURCE_DIR}/include/exiv2)
if ( MSVC ) if ( MSVC )
if ( EXIV2_ENABLE_STATIC ) if ( EXIV2_ENABLE_STATIC )

Loading…
Cancel
Save