Skip to content

Commit 4cfc051

Browse files
committed
[CMake] add extension to fix CMP0115
1 parent 3e8a2a4 commit 4cfc051

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ SET(${PROJECT_NAME}_SOURCES
165165
src/sot/flags.cpp
166166
src/sot/memory-task-sot.cpp
167167
src/factory/pool.cpp
168-
src/tools/utils-windows
169-
src/tools/periodic-call
170-
src/tools/device
171-
src/tools/trajectory
172-
src/tools/robot-utils
173-
src/matrix/matrix-svd
174-
src/filters/causal-filter
175-
src/utils/stop-watch
168+
src/tools/utils-windows.cpp
169+
src/tools/periodic-call.cpp
170+
src/tools/device.cpp
171+
src/tools/trajectory.cpp
172+
src/tools/robot-utils.cpp
173+
src/matrix/matrix-svd.cpp
174+
src/filters/causal-filter.cpp
175+
src/utils/stop-watch.cpp
176176
)
177177

178178
ADD_LIBRARY(${PROJECT_NAME} SHARED

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ set(task-unilateral_deps task)
9393

9494
FOREACH(plugin ${plugins})
9595
GET_FILENAME_COMPONENT(LIBRARY_NAME ${plugin} NAME)
96-
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${plugin})
96+
ADD_LIBRARY(${LIBRARY_NAME} SHARED "${plugin}.cpp")
9797
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH $ORIGIN)
9898

9999
IF(SUFFIX_SO_VERSION)

0 commit comments

Comments
 (0)