DiscussionsIssue archiveOCCT:Configuration

Archived issue #0032046

Configuration - CMake Installs .lib files to libd instead of lib on Windows

CommunityOCCT:Configurationassigned2 public notes

Search issues

Description

After using CMake install with the following settings, .lib files on Windows are installed in libd, but .so files on Linux are installed in lib. The .lib files are expected to be saved in "lib" as I configured, or they should have the same behavior on Windows and Linux.

INSTALL_DIR_LAYOUT=Unix
INSTALL_DIR_LIB=lib
CMAKE_BUILD_TYPE=Debug

Public activity

2 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Hi,

For what reason you :
1. use Unix layout on Windows
2. are not satisfied condition for Windows
  lib - Release libraries
  libd - Debug libraries

02Author
I am integrating Open Cascade with a package manager (conan), which maintains the list of lib files by itself without using CMake. Thus, I need a universal package layout, so I don't need to figure out whether they are in "win64/vc14" or "lin64/gcc", "lib" or "libd".

With the current behavior, I need to check whether the library files are in "lib" or "libd". Everyone using custom build systems or package managers will face this problem. I hope that files can be in the same directory across all platforms.

Related records