CMAKE_AR/NM/RANLIB require full path?!

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

CMAKE_AR/NM/RANLIB require full path?!

René J. V.  Bertin

I just got some build failures when changes to my build scripts led to configuring with -DCMAKE_AR=ar (RANLIB=ranlib, etc).

The documentation isn't explicit on what these parameters expect so I assumed that it should be fine to set them to a command name, as with CMAKE_<LANG>_COMPILER.

Wrong! CMake will apparently prepend CMAKE_BINARY_DIR to these commands.

If this is intentional, why isn't it documented in the CMAKE_AR (etc) description?



Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: