Skip to content

Commit 136ce60

Browse files
committed
Further removals of now-redundant CMake config code
1 parent afb1d52 commit 136ce60

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

unmoving/CMakeLists.txt

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,10 @@ target_include_directories(
1010
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
1111
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
1212
)
13-
# These next two commands perhaps can be removed if they're only for library objects (not header-only)?
14-
# set up version and soversion for the main library object
15-
set_target_properties(
16-
unmoving PROPERTIES
17-
VERSION ${UNMOVING_VERSION_STRING}
18-
SOVERSION ${PROJECT_VERSION_MAJOR}
19-
INTERFACE_unmoving_MAJOR_VERSION ${PROJECT_VERSION_MAJOR}
20-
INTERFACE_unmoving_MINOR_VERSION ${PROJECT_VERSION_MINOR}
21-
)
13+
# not 100% sure if this is still needed, but it appears in the package-config output so best to keep
2214
set_property(
2315
TARGET unmoving
24-
APPEND PROPERTY COMPATIBLE_INTERFACE_STRING "${Unmoving_MAJOR_VERSION}.${Unmoving_MINOR_VERSION}"
16+
APPEND PROPERTY COMPATIBLE_INTERFACE_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}"
2517
)
2618

2719
# install if we're not being built as a sub-project

0 commit comments

Comments
 (0)