File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,13 @@ target_include_directories(${PROJECT_NAME}
170
170
$<INSTALL_INTERFACE:include>
171
171
)
172
172
173
- SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION} )
173
+ OPTION(SUFFIX_SO_VERSION
174
+ " Suffix shared library name by a string depending on git status of project "
175
+ ON)
176
+
177
+ IF (${SUFFIX_SO_VERSION} EQUAL " ON ")
178
+ SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION} )
179
+ ENDIF ()
174
180
175
181
IF (UNIX)
176
182
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${CMAKE_DL_LIBS} pthread)
Original file line number Diff line number Diff line change 2
2
#
3
3
4
4
ADD_DEFINITIONS (-DDEBUG=2 )
5
+ SET (CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} -Wl,--disable-new-dtags )
5
6
6
7
# Add Boost path to include directories.
7
8
#INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
You can’t perform that action at this time.
0 commit comments