From: gbiggs <gb...@ki...> - 2008-07-23 00:47:13
|
Have you had a chance to try this, Richard? Geoff gbiggs wrote: > These are CMake variables, not environment variables. You need to run > ccmake, switch to advanced mode, and set them there, or you can set them > on the command line to cmake using -D: > > -D <var>:<type>=<value> = Create a cmake cache entry. > > e.g. -D PLAYER_EXTRA_LIB_DIRS:STRING=/opt/local/lib > > Not entirely sure about why the stuff you added doesn't work, but it's > possible that the CheckIncludeFile module circumvents those, since it > uses TRY_COMPILE internally. That function creates and executes a > separate, temporary CMake project for the test (this is why those > modules take parameters or use variables that you set to tell them extra > places to look). > > You can see what it's actually doing by running CMake with > --debug-trycompile, then looking in the CMakeFiles/CMakeTmp/ directory > under your build dir for the CMake project it created, running cmake in > that directory, and trying to build it. I suggest creating a test > CMakeLists.txt elsewhere to try this, as the Player one contains a pile > of checks all over the place that will overwrite the jpeg one. > > Geoff > > Richard Vaughan wrote: >> export PLAYER_EXTRA_INCLUDE_DIRS=/opt/local/include/ >> export PLAYER_EXTRA_LIB_DIRS=/opt/local/lib |