[waffle] [PATCHv3 15/19] cmake: drop the waffle library prefix on Windows
Emil Velikov
emil.l.velikov at gmail.com
Mon Aug 4 10:06:06 PDT 2014
Be a bit more consistent with Windows, rather than other platforms and
drop the library prefix. Suggested by Jose.
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
Seems like I've completely misunderstood Jose the first time I've read
his reply. Here is an updated version which works with mingw-w64 and
msvc :)
-Emil
src/waffle/CMakeLists.txt | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/waffle/CMakeLists.txt b/src/waffle/CMakeLists.txt
index 9507398..af71f0d 100644
--- a/src/waffle/CMakeLists.txt
+++ b/src/waffle/CMakeLists.txt
@@ -188,6 +188,13 @@ set_target_properties(${waffle_libname}
VERSION ${waffle_soversion}.${waffle_minor_version}.${waffle_patch_version}
)
+if(waffle_on_windows)
+ set_target_properties(${waffle_libname}
+ PROPERTIES
+ PREFIX ""
+ )
+endif()
+
if(NOT waffle_on_mac)
set_target_properties(${waffle_libname}
PROPERTIES
--
2.0.2
More information about the waffle
mailing list