Skip to content

Commit

Permalink
COMP: Update JsonCpp external project to use $<CONFIG>
Browse files Browse the repository at this point in the history
Starting with CMake 3.21, use of CMAKE_CFG_INTDIR has been deprecated.
  • Loading branch information
jcfr committed Sep 26, 2023
1 parent 2f92748 commit d948581
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SuperBuild/External_JsonCpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ if(NOT DEFINED ${proj}_DIR AND NOT Slicer_USE_SYSTEM_${proj})
set(lib_prefix "lib")
set(lib_ext "so")
endif()
set(${proj}_LIBRARY ${${proj}_DIR}/src/lib_json/${CMAKE_CFG_INTDIR}/${lib_prefix}jsoncpp.${lib_ext})
if(DEFINED CMAKE_CONFIGURATION_TYPES)
set(lib_cfg_dir "$<CONFIG>")
else()
set(lib_cfg_dir ".")
endif()
set(${proj}_LIBRARY ${${proj}_DIR}/src/lib_json/${lib_cfg_dir}/${lib_prefix}jsoncpp.${lib_ext})

#-----------------------------------------------------------------------------
# Launcher setting specific to build tree
Expand Down

0 comments on commit d948581

Please sign in to comment.