summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-02-12 16:05:39 (GMT)
committerAndreas Schneider <asn@cryptomilk.org>2015-02-12 16:06:49 (GMT)
commitfae9be0f837cf515c6ab46a986accbd32b0dec23 (patch)
treedf6507d745f8560ac3454622c54b9241ea860f65
parente97f3bd69bd1f0c6f6d6467b57739279c77a0b1b (diff)
downloadcmocka-fae9be0f837cf515c6ab46a986accbd32b0dec23.zip
cmocka-fae9be0f837cf515c6ab46a986accbd32b0dec23.tar.gz
cmocka-fae9be0f837cf515c6ab46a986accbd32b0dec23.tar.bz2
cmake: Always set correct output name.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6aa2741..b5a3c7d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -53,6 +53,14 @@ endif()
add_library(${CMOCKA_SHARED_LIBRARY} SHARED ${cmocka_SRCS})
target_link_libraries(${CMOCKA_SHARED_LIBRARY} ${CMOCKA_LINK_LIBRARIES})
+set_target_properties(
+ ${CMOCKA_SHARED_LIBRARY}
+ PROPERTIES
+ OUTPUT_NAME
+ cmocka
+ DEFINE_SYMBOL
+ CMOCKA_EXPORTS
+)
if (NOT WIN32)
set_target_properties(
@@ -62,10 +70,6 @@ if (NOT WIN32)
${LIBRARY_VERSION}
SOVERSION
${LIBRARY_SOVERSION}
- OUTPUT_NAME
- cmocka
- DEFINE_SYMBOL
- CMOCKA_EXPORTS
)
endif (NOT WIN32)