Skip to content

Commit

Permalink
working in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed Mar 8, 2017
1 parent 3b07dd5 commit 37f8917
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ install_manifest.txt
CTestTestfile.cmake
__pycache__/
test_package/build/
build/
*.pyc
2 changes: 2 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ def package(self):

def package_info(self):
self.cpp_info.libs = ["g3logger"]
if self.settings.os == "Linux":
self.cpp_info.libs.append("pthread")
3 changes: 3 additions & 0 deletions test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ cmake_minimum_required(VERSION 2.8.12)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()

if(NOT MSVC)
ADD_DEFINITIONS ( -std=c++11 )
endif()
ADD_EXECUTABLE(example example.cpp)
TARGET_LINK_LIBRARIES(example ${CONAN_LIBS})
Binary file removed test_package/conanfile.pyc
Binary file not shown.

0 comments on commit 37f8917

Please sign in to comment.