Hey
I have very strange problem using cmake (cmake version 2.4-patch 7, from
packages) on debian. I have small progam : time.cpp. It uses boost_date_time
library. It compiles fine with g++ time.cpp -lboost_date_time.
So I try to write CMakeLists.txt for that:
$ cat CMakeLists.txt
SET
Sorry, I forgot to add make output:
make
Scanning dependencies of target time
[100%] Building CXX object CMakeFiles/time.dir/time.o
Linking CXX executable time
CMakeFiles/time.dir/time.o: In function
`boost::date_time::month_formatterboost::gregorian::greg_month,
Did you build the Data_Time boost library? Are you linking against
the libboost_date_time library? Run a 'make VERBOSE=1' and post
the ouput.
--
Mike Jackson Senior Research Engineer
Innovative Management Technology Services
On Dec 13, 2007, at 1:19 PM, Tomasz Kalkosiński wrote:
the below line should be something like:
TARGET_LINK_LIBRARIES ( time ${Boost_Date_Time_Library} )
Look at the FindBoost.cmake file for the exact name of the library
variable. The way you had the line you would be including a directory
and not the actual boost date_time library.
--
Mike