Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boost error on OSX #1

Closed
walchko opened this issue Dec 8, 2012 · 0 comments
Closed

Boost error on OSX #1

walchko opened this issue Dec 8, 2012 · 0 comments

Comments

@walchko
Copy link

walchko commented Dec 8, 2012

I had to add "boost system" to get it to compile. Here is the diff:

[kevin@tardis console_bridge]$ git diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 453683d..09b7f61 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@ if (NOT CMAKE_BUILD_TYPE)
   set(CMAKE_BUILD_TYPE Release)
 endif()

-find_package(Boost COMPONENTS thread REQUIRED)
+find_package(Boost COMPONENTS system thread REQUIRED)

 if(MSVC OR MSVC90 OR MSVC10)
   set(MSVC ON)
@@ -20,7 +20,7 @@ include_directories(${Boost_INCLUDE_DIR})
 link_directories(${Boost_LIBRARY_DIRS})

 add_library(${PROJECT_NAME} SHARED src/console.cpp)
-target_link_libraries(${PROJECT_NAME} ${Boost_THREAD_LIBRARY})
+target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES})

 install(TARGETS ${PROJECT_NAME}
   DESTINATION lib/) 
@isucan isucan closed this as completed in a1a382b Dec 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants