wavii/pfp — Issue #11: Build issues
Author: yang
Created: 2012-02-02 02:02:12+00:00
State: open

`test` doesn't build. This should fix it:

```
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,7 @@ ELSE(APPLE)
TARGET_LINK_LIBRARIES(pfpd pfp boost_filesystem boost_thread boost_regex boost_system icuio icuuc)
TARGET_LINK_LIBRARIES(pfpc pfp boost_filesystem boost_thread boost_regex boost_system icuio icuuc)
TARGET_LINK_LIBRARIES(pfpc_token pfp boost_filesystem boost_thread boost_regex boost_system icuio icuuc)
- TARGET_LINK_LIBRARIES(test pfp boost_thread boost_unit_test_framework boost_regex icuio icuuc)
+ TARGET_LINK_LIBRARIES(test pfp boost_filesystem boost_thread boost_unit_test_framework boost_regex boost_system icuio icuuc)
ENDIF(APPLE)

INSTALL(TARGETS pfpd DESTINATION bin)
```

Also, I can't seem to install pfp to anywhere but /usr. When I set [`-DCMAKE_INSTALL_PREFIX`][1], I get:

```
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /usr/bin/pfpd
CMake Error at cmake_install.cmake:42 (FILE):
file INSTALL cannot copy file "/tmp/pfp2/pfpd" to "/usr/bin/pfpd".

make: *** [install] Error 1
```

[1]: http://stackoverflow.com/questions/6003374/what-is-cmake-equivalent-of-configure-prefix-dir-make-all-install