|
From: <kin...@us...> - 2025-09-10 01:34:23
|
Revision: 7391
http://sourceforge.net/p/teem/code/7391
Author: kindlmann
Date: 2025-09-10 01:34:21 +0000 (Wed, 10 Sep 2025)
Log Message:
-----------
whether to link with -lm is info we can share to downstream consumers
Modified Paths:
--------------
teem/trunk/CMakeLists-v2.txt
Modified: teem/trunk/CMakeLists-v2.txt
===================================================================
--- teem/trunk/CMakeLists-v2.txt 2025-09-10 01:33:26 UTC (rev 7390)
+++ teem/trunk/CMakeLists-v2.txt 2025-09-10 01:34:21 UTC (rev 7391)
@@ -285,7 +285,10 @@
include(CheckLibM)
if(LIBM_NEEDED)
message(STATUS "Will explicitly link with -lm")
- target_link_libraries(Teem PRIVATE m)
+ target_link_libraries(Teem
+ PRIVATE # still link to Teem itself
+ INTERFACE m # this ensures consumers (executables) get -lm automatically
+ )
else()
message(STATUS "Do not need to link with -lm")
endif()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|