Unused link directory during cmake. on Mac OSX
clang++: warning: argument unused during compilation: '-L/usr/local/lib/' [-Wunused-command-line-argument]
This link folder is present in CMakeLists.txt within examples/ sub folders.
cmake_minimum_required(VERSION 3.9)
project(PrimExample)
# specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES /usr/local/lib ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES})
add_executable(prim_example prim_example.cpp)
target_include_directories(prim_example PUBLIC "${CMAKE_SOURCE_DIR}/include")
target_link_libraries(prim_example
pthread
ssl
crypto
z)
Unused link directory during cmake. on Mac OSX
clang++: warning: argument unused during compilation: '-L/usr/local/lib/' [-Wunused-command-line-argument]This link folder is present in CMakeLists.txt within examples/ sub folders.