Skip to content
Snippets Groups Projects
Commit 92ee5ee9 authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Add Cmake option to deactivate suffix of so files.

  Force tests to link with the library in build directory.
parent 70864112
No related branches found
No related tags found
No related merge requests found
......@@ -170,7 +170,13 @@ target_include_directories(${PROJECT_NAME}
$<INSTALL_INTERFACE:include>
)
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
OPTION(SUFFIX_SO_VERSION
"Suffix shared library name by a string depending on git status of project"
ON)
IF (${SUFFIX_SO_VERSION} EQUAL "ON")
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
ENDIF ()
IF (UNIX)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${CMAKE_DL_LIBS} pthread)
......
......@@ -2,6 +2,7 @@
#
ADD_DEFINITIONS(-DDEBUG=2)
SET(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} -Wl,--disable-new-dtags)
# Add Boost path to include directories.
#INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment