Skip to content

Commit

Permalink
Merge pull request #241 from Challanger524/cmake-fix_static_c++_build
Browse files Browse the repository at this point in the history
cmake: Fix broken static library build for c++ target
  • Loading branch information
hyperrealm authored Sep 7, 2024
2 parents f9404f6 + 8c17c8c commit 7886cac
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 7886cac

Please sign in to comment.