[Cmake] (no subject)

Michael Bell bellm at email.unc.edu
Tue Apr 22 16:50:18 EDT 2003


cmake users,
    
    I have a source tree which relies on fltk. I use FIND_PACKAGE(FLTK)
to define the FLTK_LIBRARIES variable. Under Linux and Darwin, this
works fine, but under SunOS, there is a problem: At the top level
CMakelists.txt file, FLTK_LIBRARIES is defined correctly, but at the
next level, the variable is no longer defined.

Directory structure:
base
  |-> dir2

base: CMakeLists.txt
 FIND_PACKAGE (FLTK)
 MESSAGE(${FLTK_LIBRARIES})
 SUBDIRS(dir2)

dir2: CmakeLists.txt
 MESSAGE(${FLTK_LIBRARIES})

(correct)Linux output of cmake:
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check for working CXX compiler: /usr/bin/g++ -- works
/usr/local/lib/libfltk.a/usr/local/lib/libfltk_gl.a/usr/local/lib/libfltk_forms.a/usr/local/lib/libfltk_images.a-lSM-lICE/usr/X11R6/lib/libX11.so/usr/X11R6/lib/libXext.so-lm
/usr/local/lib/libfltk.a/usr/local/lib/libfltk_gl.a/usr/local/lib/libfltk_forms.a/usr/local/lib/libfltk_images.a-lSM-lICE/usr/X11R6/lib/libX11.so/usr/X11R6/lib/libXext.so-lm
-- Configuring done
-- Generating done

(incorrect)SunOS output of cmake:
-- Check for working C compiler: /atlasK/opt/sfw/bin/gcc -- works
-- Check for working CXX compiler: /atlasK/opt/sfw/bin/g++ -- works
/atlasK/opt/sfw/lib/libfltk.a/atlasK/opt/sfw/lib/libfltk_gl.a/atlasK/opt/sfw/lib/libfltk_forms.a/atlasK/opt/sfw/lib/libfltk_images.a-lSM-lICE/usr/openwin/lib/libX11.so/usr/openwin/lib/libXext.so-lsocket-lnsl-lm
CMake Error: Error in cmake code at
/uc/bell/temp/dir2/CMakeLists.txt:2:
MESSAGE called with incorrect number of arguments
-- Configuring done

I am using cmake 1.6.4 on SunOS 5.8

Any ideas?

thanks,
michael


-- 
bellm at email.unc.edu



More information about the CMake mailing list