From 8beed17e9e6dfd776fb91a8150645dd95cb3263b Mon Sep 17 00:00:00 2001
From: posial
Date: Tue, 20 Oct 2015 12:31:16 +0200
Subject: [PATCH] Cannot link boost libraries when building unit tests
[issue] https://bugs.tizen.org/jira/browse/TT-166
[problem] Cannot link boost libraries when building unit tests
[solution] Remove cmake variables names shadowing
[verification] build browser
Change-Id: I79e4619860ad1234d36e96240279c311086eb55d
---
CMakeLists.txt | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 94aed0c..312cc7e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,16 +46,11 @@ else()
message(FATAL_ERROR "The Compiler ${CMAKE_CXX_COMPILER} doesn't support C++11")
endif()
-
-find_package(Boost 1.49.0 REQUIRED COMPONENTS
- regex
- filesystem
- system
- date_time
- )
+set(BOOST_LIBS regex filesystem system date_time)
if(BUILD_UT)
-find_package(Boost 1.49.0 REQUIRED COMPONENTS unit_test_framework)
+ set(BOOST_LIBS ${BOOST_LIBS} unit_test_framework)
ENDIF(BUILD_UT)
+find_package(Boost 1.49.9 REQUIRED COMPONENTS ${BOOST_LIBS})
#RPATH settings
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
--
2.7.4