cmake: fix shared library linking
@@ -340,11 +340,11 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_link_libraries(re "-framework SystemConfiguration" "-framework CoreFoundation" )
endif()
-target_link_libraries(re -L/opt/local/lib -lssl -lcrypto -lpthread)
set_target_properties(re PROPERTIES POSITION_INDEPENDENT_CODE 1)
set_target_properties(re PROPERTIES PUBLIC_HEADER include/re.h)
+target_link_libraries(re-shared -L/opt/local/lib -lssl -lcrypto -lpthread)
set_target_properties(re-shared PROPERTIES VERSION ${PROJECT_VERSION})
set_target_properties(re-shared PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR})
set_target_properties(re-shared PROPERTIES OUTPUT_NAME "re")
