build: explicitly link to stdc++fs

We note the dependency ourselves rather than use a global link directive
so that it comes _after_ us. This prevents undefined references (and an
ICE under GCC/LTO)
This commit is contained in:
Danny Robson 2019-01-02 13:44:31 +11:00
parent bce481db0e
commit a33938e735

View File

@ -32,6 +32,8 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
###############################################################################
add_library(cruft)
target_link_libraries(cruft ${NC_CXX_STDCXXFS})
# Setup a directory to hold built sources we may need to export to clients.
set (PREFIX "cruft/util")