aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Klages <oliver.klages@googlemail.com>2018-07-21 00:20:04 +0200
committerOliver Klages <oliver.klages@googlemail.com>2018-07-21 00:20:04 +0200
commitc0ffbb1ae40fe97a345982fa1154e3bdaf37eb6f (patch)
treec9d2dd69fd00886522cc8ae45586b6caeff22615
parent2035d0124dd01ea3ebabfdcc99c7275f723cab13 (diff)
downloadvcpkg-c0ffbb1ae40fe97a345982fa1154e3bdaf37eb6f.tar.gz
vcpkg-c0ffbb1ae40fe97a345982fa1154e3bdaf37eb6f.zip
fixed rttr not building on windows because of bad handling of empty cmake vars in portfile.cmake
-rw-r--r--ports/rttr/portfile.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/ports/rttr/portfile.cmake b/ports/rttr/portfile.cmake
index bfb1d23ad..63a5678d9 100644
--- a/ports/rttr/portfile.cmake
+++ b/ports/rttr/portfile.cmake
@@ -38,7 +38,14 @@ if(REL_EXES)
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/rttr)
file(COPY ${REL_EXES} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/rttr)
endif()
-file(REMOVE ${REL_EXES} ${DBG_EXES})
+
+if(REL_EXES)
+ file(REMOVE ${REL_EXES})
+endif(REL_EXES)
+
+if(DBG_EXES)
+ file(REMOVE ${DBG_EXES})
+endif(DBG_EXES)
#Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rttr)