MantisBT - Community
View Issue Details
0032046Community[OCCT] OCCT:Configurationpublic2021-01-10 16:392021-01-12 15:48
taoyouh 
taoyouh 
normalminor 
feedbackopen 
WindowsVC++ 201564 bit
[OCCT] 7.5.0 
[OCCT] 7.6.0* 
0032046: Configuration - CMake Installs .lib files to libd instead of lib on Windows
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
No tags attached.
related to 0032035feedback efferre79 Community Configuration - bug in OpenCASCADEConfig.cmake when using INSTALL_DIR_CMAKE 
Issue History
2021-01-10 16:39taoyouhNew Issue
2021-01-10 16:39taoyouhAssigned To => bugmaster
2021-01-10 17:11kgvTarget Version => 7.6.0*
2021-01-10 17:11kgvSummaryCMake Installs .lib files to libd instead of lib on Windows => Configuration - CMake Installs .lib files to libd instead of lib on Windows
2021-01-11 12:13kgvRelationship addedrelated to 0032047
2021-01-11 16:21bugmasterNote Added: 0098077
2021-01-11 16:21bugmasterAssigned Tobugmaster => taoyouh
2021-01-11 16:21bugmasterStatusnew => feedback
2021-01-12 07:36taoyouhNote Added: 0098082
2021-01-12 07:36taoyouhNote Edited: 0098082bug_revision_view_page.php?bugnote_id=98082#r24288
2021-01-12 15:44kgvRelationship addedrelated to 0032035

Notes
(0098077)
bugmaster   
2021-01-11 16:21   
Hi,

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

(0098082)
taoyouh   
2021-01-12 07:36   
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.