diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9a02424..1be4a5f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,10 +17,8 @@ target_link_libraries( ${LIBRARY_TARGET} PUBLIC Boost::filesystem PUBLIC Python::Python - PRIVATE ${LUA_LIBRARIES}) -if(${PPPLUGIN_ENABLE_CPP17_COMPATIBILITY}) - target_link_libraries(${LIBRARY_TARGET} PUBLIC fmt::fmt) -endif() + PRIVATE ${LUA_LIBRARIES} + PUBLIC $<$:fmt::fmt>) target_include_directories( ${LIBRARY_TARGET} PRIVATE ${LUA_INCLUDE_DIR}