[CMake] Finding internal libraries
Ruslan Baratov
ruslan_baratov at yahoo.com
Wed Jul 15 00:20:26 EDT 2015
John LaGrone wrote
> cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
> project(ex1)
> find_package(foo REQUIRED)
> add_executable(ex1.x ex1.c)
> target_link_libraries(ex1.x foo)
Just check that library exists already:
if(NOT TARGET foo)
find_package(foo REQUIRED)
endif()
--
View this message in context: http://cmake.3232098.n2.nabble.com/Finding-internal-libraries-tp7591003p7591056.html
Sent from the CMake mailing list archive at Nabble.com.
More information about the CMake
mailing list