0027514: Configuration, CMake - relative paths are not correctly handled for INSTALL_DIR
[occt.git] / samples / mfc / standard / mfcsample / CMakeLists.txt
index 08e3c42..05664ef 100644 (file)
@@ -140,20 +140,20 @@ set_property (TARGET mfcsample PROPERTY FOLDER Samples)
 
 if (SINGLE_GENERATOR)
   install (TARGETS mfcsample
-           RUNTIME DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}"
-           ARCHIVE DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}"
-           LIBRARY DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}")
+           RUNTIME DESTINATION "${INSTALL_DIR_BIN}"
+           ARCHIVE DESTINATION "${INSTALL_DIR_LIB}"
+           LIBRARY DESTINATION "${INSTALL_DIR_LIB}")
 else()
   install (TARGETS mfcsample
            CONFIGURATIONS Release RelWithDebInfo
-           RUNTIME DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}"
-           ARCHIVE DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}"
-           LIBRARY DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}")
+           RUNTIME DESTINATION "${INSTALL_DIR_BIN}"
+           ARCHIVE DESTINATION "${INSTALL_DIR_LIB}"
+           LIBRARY DESTINATION "${INSTALL_DIR_LIB}")
   install (TARGETS mfcsample
            CONFIGURATIONS Debug
-           RUNTIME DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}d"
-           ARCHIVE DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}d"
-           LIBRARY DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_LIB}d")
+           RUNTIME DESTINATION "${INSTALL_DIR_BIN}d"
+           ARCHIVE DESTINATION "${INSTALL_DIR_LIB}d"
+           LIBRARY DESTINATION "${INSTALL_DIR_LIB}d")
 endif()
 
 include_directories( ${CMAKE_BINARY_DIR}/inc