Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Fix compilation with shared libraries
Browse files Browse the repository at this point in the history
`set_target_properties` is missing an argument name for setting
SOVERSION, resulting in a build error when configuring:

```
CMake Error at CMakeLists.txt:199 (set_target_properties):
  set_target_properties called with incorrect number of arguments.
```
  • Loading branch information
vincentbernat committed Dec 7, 2017
1 parent 0f246e3 commit 6075565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ add_library (evhtp ${EVHTP_LIBTYPE} ${LIBEVHTP_SOURCE_FILES})
target_link_libraries (evhtp ${LIBEVHTP_EXTERNAL_LIBS})

if (EVHTP_BUILD_SHARED)
set_target_properties(evhtp PROPERTIES VERSION "${PROJECT_VERSION}" 0 OUTPUT_NAME "evhtp")
set_target_properties(evhtp PROPERTIES VERSION "${PROJECT_VERSION}" SOVERSION 0 OUTPUT_NAME "evhtp")
endif()

add_subdirectory(examples)
Expand Down

0 comments on commit 6075565

Please sign in to comment.