Line 0
Link Here
|
|
|
1 |
--- ./scripts/CMakeLists.txt.orig 2014-08-23 08:28:21.562183999 -0400 |
2 |
+++ ./scripts/CMakeLists.txt 2014-08-23 08:41:29.301439998 -0400 |
3 |
@@ -10,13 +10,11 @@ |
4 |
set(HEADERS ../src/pugixml.hpp ../src/pugiconfig.hpp) |
5 |
set(SOURCES ${HEADERS} ../src/pugixml.cpp) |
6 |
|
7 |
-if(BUILD_SHARED_LIBS) |
8 |
- add_library(pugixml SHARED ${SOURCES}) |
9 |
-else() |
10 |
- add_library(pugixml STATIC ${SOURCES}) |
11 |
-endif() |
12 |
+add_library(pugixml SHARED ${SOURCES}) |
13 |
+add_library(pugixml_static STATIC ${SOURCES}) |
14 |
|
15 |
set_target_properties(pugixml PROPERTIES VERSION 1.4 SOVERSION 1) |
16 |
+set_target_properties(pugixml_static PROPERTIES OUTPUT_NAME pugixml) |
17 |
|
18 |
-install(TARGETS pugixml LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
19 |
+install(TARGETS pugixml pugixml_static LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
20 |
install(FILES ${HEADERS} DESTINATION include) |