summaryrefslogtreecommitdiff
blob: 845229bd767073853991ab9de37eef1bbf12e04f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
https://bugs.gentoo.org/726492
--- a/tddl/CMakeLists.txt
+++ b/tddl/CMakeLists.txt
@@ -5,21 +5,18 @@
 
 set(tddl-tpm-emulator_SRCS "tddl.c" "tddl-tpm-emulator.h")
 add_library(tddl-tpm-emulator SHARED ${tddl-tpm-emulator_SRCS})
-add_library(tddl-tpm-emulator_static STATIC ${tddl-tpm-emulator_SRCS})
 if(UNIX)
   set_target_properties(tddl-tpm-emulator PROPERTIES SOVERSION "1.2"
     VERSION "1.2.${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}")
-  set_target_properties(tddl-tpm-emulator_static PROPERTIES OUTPUT_NAME tddl-tpm-emulator)
 elseif(WIN32)
   set_target_properties(tddl-tpm-emulator PROPERTIES OUTPUT_NAME ifxtpm)
   set_target_properties(tddl-tpm-emulator PROPERTIES PREFIX "")
 endif()
 
 install(TARGETS tddl-tpm-emulator DESTINATION ${CMAKE_INSTALL_LIBDIR})
-install(TARGETS tddl-tpm-emulator_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
 install(FILES "tddl-tpm-emulator.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
 
 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
 add_executable(test_tddl test_tddl.c)
-target_link_libraries(test_tddl tddl-tpm-emulator_static)
+target_link_libraries(test_tddl tddl-tpm-emulator)