Browse Source

CMake formatting improved.

main
offa 5 years ago
parent
commit
c1cda3e087
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      CMakeLists.txt

+ 6
- 6
CMakeLists.txt View File



add_library(ScopeGuard INTERFACE) add_library(ScopeGuard INTERFACE)
target_include_directories(ScopeGuard INTERFACE target_include_directories(ScopeGuard INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)


if( ENABLE_COMPAT_HEADER ) if( ENABLE_COMPAT_HEADER )
configure_file(cmake/scope.in generated/scope COPYONLY) configure_file(cmake/scope.in generated/scope COPYONLY)


target_include_directories(ScopeGuard INTERFACE target_include_directories(ScopeGuard INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/generated>
$<INSTALL_INTERFACE:include>
)
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/generated>
$<INSTALL_INTERFACE:include>
)
endif() endif()





Loading…
Cancel
Save