cmake: build shared libs by default on linux
The change allows to build shared libraries by default on Linux, while respecting the requested library build type when the standard CMake flag BUILD_SHARED_LIBS is defined. Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
7f85f2bbdb
commit
86a0e10c03
@@ -111,7 +111,7 @@ set (mraa_LIB_GLOB_HEADERS
|
||||
${PROJECT_SOURCE_DIR}/api/mraa.hpp
|
||||
)
|
||||
|
||||
add_library (mraa SHARED ${mraa_LIB_SRCS})
|
||||
add_library (mraa ${mraa_LIB_SRCS})
|
||||
|
||||
|
||||
target_link_libraries (mraa ${mraa_LIBS})
|
||||
|
||||
Reference in New Issue
Block a user