Skip to content

Commit

Permalink
cmake: Fix broken static library build for c++ target
Browse files Browse the repository at this point in the history
  • Loading branch information
Challanger524 committed Apr 28, 2024
1 parent f9404f6 commit 8c17c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if(BUILD_SHARED_LIBS)
target_compile_definitions(${libname}++ PRIVATE LIBCONFIG_STATIC)
else()
target_compile_definitions(${libname} PUBLIC LIBCONFIG_STATIC)
target_compile_definitions(${libname}++ PUBLIC LIBCONFIGXX_STATIC)
target_compile_definitions(${libname}++ PUBLIC LIBCONFIG_STATIC LIBCONFIGXX_STATIC)
endif()

if(APPLE)
Expand Down

0 comments on commit 8c17c8c

Please sign in to comment.