Skip to content

Commit

Permalink
Merge pull request #1347 from fredroy/fix_configtype_dir
Browse files Browse the repository at this point in the history
[SofaFramework/CMake] Create configuration type dir before copying lib
  • Loading branch information
guparan authored Apr 30, 2020
2 parents e73a901 + 6d1e7a9 commit 274ce9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SofaKernel/SofaFramework/SofaMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,8 @@ function(sofa_copy_libraries)
if(EXISTS ${SHARED_LIB})
if(CMAKE_CONFIGURATION_TYPES) # Multi-config generator (Visual Studio)
foreach(CONFIG ${CMAKE_CONFIGURATION_TYPES})
configure_file(${SHARED_LIB} "${runtime_output_dir}/${CONFIG}" COPYONLY)
file(MAKE_DIRECTORY "${runtime_output_dir}/${CONFIG}")
configure_file(${SHARED_LIB} "${runtime_output_dir}/${CONFIG}/" COPYONLY)
endforeach()
else() # Single-config generator (nmake, ninja)
configure_file(${SHARED_LIB} "${runtime_output_dir}" COPYONLY)
Expand Down

0 comments on commit 274ce9a

Please sign in to comment.