Skip to content

Commit 8bc418e

Browse files
committed
set_target_properties version
1 parent 36717e6 commit 8bc418e

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

3rdparty/gtest/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
# ctest. You can select which tests to run using 'ctest -R regex'.
99
# For more options, run 'ctest --help'.
1010

11+
if (POLICY CMP0077)
12+
cmake_policy(SET CMP0077 NEW)
13+
endif (POLICY CMP0077)
14+
1115
# When other libraries are using a shared version of runtime libraries,
1216
# Google Test also has to use one.
1317
option(
@@ -59,10 +63,6 @@ if (POLICY CMP0063) # Visibility
5963
cmake_policy(SET CMP0063 NEW)
6064
endif (POLICY CMP0063)
6165

62-
if (POLICY CMP0077) # Visibility
63-
cmake_policy(SET CMP0077 NEW)
64-
endif (POLICY CMP0077)
65-
6666
if (COMMAND set_up_hermetic_build)
6767
set_up_hermetic_build()
6868
endif()

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.12)
1+
cmake_minimum_required(VERSION 3.10)
22
project(cpp-ipc)
33

44
option(LIBIPC_BUILD_TESTS "Build all of libipc's own tests." OFF)

src/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
project(ipc VERSION 1.0.0 LANGUAGES CXX)
1+
project(ipc)
22

33
if(UNIX)
44
file(GLOB SRC_FILES ${LIBIPC_PROJECT_DIR}/src/libipc/platform/*_linux.cpp)
@@ -34,6 +34,12 @@ set_target_properties(${PROJECT_NAME}
3434
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
3535
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" )
3636

37+
# set version
38+
set_target_properties(${PROJECT_NAME}
39+
PROPERTIES
40+
VERSION 1.0.0
41+
SOVERSION 1)
42+
3743
target_include_directories(${PROJECT_NAME}
3844
PUBLIC ${LIBIPC_PROJECT_DIR}/include
3945
PRIVATE ${LIBIPC_PROJECT_DIR}/src
@@ -50,4 +56,4 @@ install(
5056
RUNTIME DESTINATION bin
5157
LIBRARY DESTINATION lib
5258
ARCHIVE DESTINATION lib
53-
)
59+
)

0 commit comments

Comments
 (0)