mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-02 17:46:22 +03:00
Configuration - Update file globbing and condition checks for installation paths (#399)
This commit is contained in:
parent
84334d8019
commit
2edfe536aa
@ -762,7 +762,7 @@ macro (OCCT_UPDATE_TARGET_FILE)
|
|||||||
|
|
||||||
install (CODE
|
install (CODE
|
||||||
"string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWERCASE)
|
"string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWERCASE)
|
||||||
file (GLOB ALL_OCCT_TARGET_FILES \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\")
|
file (GLOB ALL_OCCT_TARGET_FILES \"\$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\")
|
||||||
foreach(TARGET_FILENAME \${ALL_OCCT_TARGET_FILES})
|
foreach(TARGET_FILENAME \${ALL_OCCT_TARGET_FILES})
|
||||||
file (STRINGS \"\${TARGET_FILENAME}\" TARGET_FILE_CONTENT)
|
file (STRINGS \"\${TARGET_FILENAME}\" TARGET_FILE_CONTENT)
|
||||||
file (REMOVE \"\${TARGET_FILENAME}\")
|
file (REMOVE \"\${TARGET_FILENAME}\")
|
||||||
|
@ -134,7 +134,7 @@ if (EXECUTABLE_PROJECT)
|
|||||||
else()
|
else()
|
||||||
add_library (${PROJECT_NAME} ${USED_SRCFILES} ${USED_INCFILES} ${USED_RCFILE} ${RESOURCE_FILES} ${${PROJECT_NAME}_MOC_FILES})
|
add_library (${PROJECT_NAME} ${USED_SRCFILES} ${USED_INCFILES} ${USED_RCFILE} ${RESOURCE_FILES} ${${PROJECT_NAME}_MOC_FILES})
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC AND BUILD_SHARED_LIBS)
|
||||||
if (BUILD_FORCE_RelWithDebInfo)
|
if (BUILD_FORCE_RelWithDebInfo)
|
||||||
set (aReleasePdbConf "Release")
|
set (aReleasePdbConf "Release")
|
||||||
else()
|
else()
|
||||||
|
@ -27,7 +27,7 @@ get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX
|
|||||||
if (OpenCASCADE_INSTALL_PREFIX MATCHES "/cmake$")
|
if (OpenCASCADE_INSTALL_PREFIX MATCHES "/cmake$")
|
||||||
get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
|
get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
|
||||||
endif()
|
endif()
|
||||||
if (OpenCASCADE_INSTALL_PREFIX MATCHES "/lib$")
|
if (OpenCASCADE_INSTALL_PREFIX MATCHES "/lib(32|64)?$")
|
||||||
get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
|
get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
|
||||||
endif()
|
endif()
|
||||||
if (OpenCASCADE_INSTALL_PREFIX MATCHES "/libs/${CMAKE_ANDROID_ARCH_ABI}$")
|
if (OpenCASCADE_INSTALL_PREFIX MATCHES "/libs/${CMAKE_ANDROID_ARCH_ABI}$")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user