Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Setting the environment variable LD_LIBRARY_PATH to reference either the standard library installation location, or the alternate path provided as in the previous example, will likely be necessary. For C progammers, the C_INCLUDE_PATH environment variable will also need to be set if an alternate install location was used (this may also apply to Go programmers).

...


CMake Commands

These should be useful regardless of the development environment. These commands assume that the current working directory is .build which was created at the top of the repo directory tree.


Code Block
themeEmacs
titleCMake command examples
linenumberstrue
collapsetrue
# configure and generate a production package

...


cmake ..

...


make package

...



# configure and generate a development package

...


cmake .. -DDEV_PKG=1

...


make package

...



# configure and install in an alternate directory, and

...

 install transport libraries

...


cmake .. -DEV_PKG=1 -DCMAKE_INSTALL_PREFIX=/tmp/$LOGNAME/ -DPACK_EXTERNALS

...


make install

...



# configure and install in the preferred system lib/include directory path; builds both package types

...


cmake .. -DDEV_PKG=1

...


make install

...


cmake .. 

...


make install