use absolute path to interface icon

This commit is contained in:
Stephen Birarda 2016-01-11 11:21:38 -08:00
parent 301124ba3c
commit ae67da4bcb
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
IDI_ICON1 ICON DISCARDABLE "@CONFIGURE_ICON_FILENAME@"
IDI_ICON1 ICON DISCARDABLE "@CONFIGURE_ICON_PATH@"

View file

@ -100,7 +100,7 @@ if (APPLE)
set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME ${INTERFACE_BUNDLE_NAME})
elseif(WIN32)
# configure an rc file for the chosen icon
set(CONFIGURE_ICON_FILENAME ${INTERFACE_ICON_FILENAME})
set(CONFIGURE_ICON_PATH "${CMAKE_CURRENT_SOURCE_DIR}/icon/${INTERFACE_ICON_FILENAME}")
set(CONFIGURE_ICON_RC_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Icon.rc")
configure_file("${HF_CMAKE_DIR}/templates/Icon.rc.in" ${CONFIGURE_ICON_RC_OUTPUT})