Commit 533e3aef authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

-pthread was needed also in the blc_core lib cMakeLists

parent f6f73ecf
......@@ -28,6 +28,9 @@ include_directories(include)
#shared lib
add_library(${PROJECT_NAME} SHARED ${sources})
if (UNIX AND NOT APPLE) #On MacOSX -pthread is included
target_link_libraries(${PROJECT_NAME} -pthread)
endif()
#static lib
add_library(static_${PROJECT_NAME} STATIC ${sources})
......
......@@ -19,5 +19,5 @@ set(BL_DEFINITIONS -pthread -Wno-multichar ${BL_DEFINITIONS})
set(BL_INCLUDE_DIRS ${BLC_CORE_INCLUDE_DIR} ${BL_INCLUDE_DIRS} )
set(BL_LIBRARIES ${BLC_CORE_LIBRARY} ${BL_LIBRARIES})
if (UNIX AND NOT APPLE) #On MacOSX -pthread is included
set(BL_LIBRARIES -pthread rt ${BL_LIBRARIES})
set(BL_LIBRARIES ${BL_LIBRARIES} -pthread)
endif()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment