Commit 6a0aa99a authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] fix CMP0115

parent 359a9e30
Pipeline #15645 passed with stage
in 6 minutes
...@@ -9,7 +9,7 @@ SET(tracer-real-time_deps tracer) ...@@ -9,7 +9,7 @@ SET(tracer-real-time_deps tracer)
FOREACH(plugin ${plugins}) FOREACH(plugin ${plugins})
GET_FILENAME_COMPONENT(LIBRARY_NAME ${plugin} NAME) GET_FILENAME_COMPONENT(LIBRARY_NAME ${plugin} NAME)
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${plugin}) ADD_LIBRARY(${LIBRARY_NAME} SHARED "${plugin}.cpp")
IF(SUFFIX_SO_VERSION) IF(SUFFIX_SO_VERSION)
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION}) SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
......
...@@ -7,7 +7,7 @@ ADD_DEFINITIONS(-DTESTS_PLUGINDIR="${LIBRARY_OUTPUT_PATH}") ...@@ -7,7 +7,7 @@ ADD_DEFINITIONS(-DTESTS_PLUGINDIR="${LIBRARY_OUTPUT_PATH}")
ADD_DEFINITIONS(-DTESTS_DYNLIBSUFFIX="${CMAKE_SHARED_LIBRARY_SUFFIX}") ADD_DEFINITIONS(-DTESTS_DYNLIBSUFFIX="${CMAKE_SHARED_LIBRARY_SUFFIX}")
MACRO(DYNAMIC_GRAPH_TEST NAME) MACRO(DYNAMIC_GRAPH_TEST NAME)
ADD_UNIT_TEST(${NAME} ${NAME}.cpp) ADD_UNIT_TEST(${NAME} "${NAME}.cpp")
TARGET_LINK_LIBRARIES(${NAME} PRIVATE ${PROJECT_NAME} Boost::unit_test_framework) TARGET_LINK_LIBRARIES(${NAME} PRIVATE ${PROJECT_NAME} Boost::unit_test_framework)
ENDMACRO(DYNAMIC_GRAPH_TEST) ENDMACRO(DYNAMIC_GRAPH_TEST)
...@@ -15,7 +15,7 @@ ENDMACRO(DYNAMIC_GRAPH_TEST) ...@@ -15,7 +15,7 @@ ENDMACRO(DYNAMIC_GRAPH_TEST)
SET(signalcast_libs signal-cast-registerer-libA signal-cast-registerer-libB) SET(signalcast_libs signal-cast-registerer-libA signal-cast-registerer-libB)
FOREACH(lib ${signalcast_libs}) FOREACH(lib ${signalcast_libs})
ADD_LIBRARY(${lib} SHARED ${lib}) ADD_LIBRARY(${lib} SHARED "${lib}.cpp")
TARGET_LINK_LIBRARIES(${lib} PRIVATE ${PROJECT_NAME}) TARGET_LINK_LIBRARIES(${lib} PRIVATE ${PROJECT_NAME})
ENDFOREACH() ENDFOREACH()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment