]> git.lyx.org Git - features.git/blobdiff - development/cmake/src/frontends/CMakeLists.txt
Add use of installed boost libraries
[features.git] / development / cmake / src / frontends / CMakeLists.txt
index 61bcf422bd5a856b20a53a53e48f9478bc40d396..c8a2ee426d294a8710f3aca3f948d68ec9158e1c 100644 (file)
@@ -23,7 +23,11 @@ else()
        add_library(frontends ${library_type} ${_allinone_files})
 endif()
 
-target_link_libraries(frontends boost_regex)
+if(Boost_FOUND)
+  target_link_libraries(frontends ${Boost_LIBRARIES})
+else()
+  target_link_libraries(frontends boost_regex)
+endif()
 
 project_source_group("${GROUP_CODE}" frontends_sources frontends_headers)