MinGW+MSYS2: Cmake 'install' action doesn't actually install anything useful #3712
HolyBlackCat
started this conversation in
General
Replies: 1 comment
-
Found the culprit: IF("${CMAKE_GENERATOR}" MATCHES "Unix Makefiles")
OPTION(INSTALL_LIBS "Set when you want to install libraries" ON)
ELSE()
IF(APPLE AND FRAMEWORK)
OPTION(INSTALL_LIBS "Set when you want to install libraries" ON)
ELSE()
#by default, don't enable the 'INSTALL' option for Xcode and MSVC projectfiles
OPTION(INSTALL_LIBS "Set when you want to install libraries" OFF)
ENDIF()
ENDIF()
I think I see the intent behind this: "install libraries only if not using an IDE", but I'm not sure what the proper solution would be. Simply adding |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Bullet for the first time.
Tried the standard CMake build sequence:
cmake
,make
, thenmake install
(the exact commands are at the bottom).What I expected:
make install
should've copied at least libraries and headers into$CMAKE_INSTALL_PREFIX/lib
and$CMAKE_INSTALL_PREFIX/include
respectively, plus any additional files (.cmake
, etc). Every other library I've used before follows this convention.What actually happened: the only files that were installed are two
.cmake
files (BulletConfig.cmake
andUseBullet.cmake
) into$CMAKE_INSTALL_PREFIX/lib/cmake/bullet
. And nothing else.I'm on Windows, but am using MinGW with MSYS2. From the point of view of a build system, it should act almost exactly like a linux environment.
I've used following commands:
Beta Was this translation helpful? Give feedback.
All reactions