Skip to content

Commit

Permalink
MeTee: Windows: fix package target in cmake
Browse files Browse the repository at this point in the history
In win32.cmake, fix erroneous file path split in install target.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
  • Loading branch information
ausyskin authored and Tomas Winkler committed May 4, 2020
1 parent 562664c commit 030fce2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions win32.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,14 @@ get_target_property(t_pdb_name ${PROJECT_NAME} COMPILE_PDB_NAME)
get_target_property(t_pdb_name_debug ${PROJECT_NAME} COMPILE_PDB_NAME_DEBUG)
get_target_property(t_pdb_output_directory ${PROJECT_NAME} PDB_OUTPUT_DIRECTORY)

string(CONCAT INST_FILES
"${t_pdb_output_directory}/"
"\${CMAKE_INSTALL_CONFIG_NAME}/"
"$<$<CONFIG:Debug>:${t_pdb_name_debug}>"
"$<$<NOT:$<CONFIG:Debug>>:${t_pdb_name}>.pdb"
)

install(
FILES "${t_pdb_output_directory}/\${CMAKE_INSTALL_CONFIG_NAME}
/$<$<CONFIG:Debug>:${t_pdb_name_debug}
>$<$<NOT:$<CONFIG:Debug>>:${t_pdb_name}>.pdb"
FILES ${INST_FILES}
DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

0 comments on commit 030fce2

Please sign in to comment.