Skip to content

Commit f45801a

Browse files
committed
Update CMake to link fmtd in Debug mode on non-MSVC builds
1 parent 5403c40 commit f45801a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

modules/core/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ target_link_directories(${exec_func_lib} PUBLIC "${CMAKE_BINARY_DIR}/ppc_libenvp
2929
if(MSVC)
3030
target_link_libraries(${exec_func_lib} PUBLIC fmt libenvpp)
3131
else()
32-
target_link_libraries(${exec_func_lib} PUBLIC fmt envpp)
32+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
33+
target_link_libraries(${exec_func_lib} PUBLIC fmtd envpp)
34+
else()
35+
target_link_libraries(${exec_func_lib} PUBLIC fmt envpp)
36+
endif()
3337
endif ()
3438

3539
add_dependencies(${exec_func_lib} ppc_json)

0 commit comments

Comments
 (0)