Skip to content

Commit

Permalink
Try to fix CMake export
Browse files Browse the repository at this point in the history
  • Loading branch information
trolando committed Oct 25, 2023
1 parent c7c21e7 commit a3cd3d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -20,7 +20,7 @@ FetchContent_MakeAvailable(lace)
find_package(Boost REQUIRED filesystem iostreams regex system random)

# Main library target
add_library(oink)
add_library(oink STATIC)
add_library(oink::oink ALIAS oink)
set_target_properties(oink PROPERTIES VERSION ${oink_VERSION} SOVERSION ${oink_VERSION_MAJOR})

Expand Down Expand Up @@ -54,7 +54,7 @@ target_include_directories(oink
$<INSTALL_INTERFACE:include>
)

target_link_libraries(oink pthread lace::lace)
target_link_libraries(oink PUBLIC pthread lace)

option(OINK_BUILD_NATIVE "Use -march=native flag for compiling Oink" ON)
if(OINK_BUILD_NATIVE)
Expand Down

0 comments on commit a3cd3d1

Please sign in to comment.