I am using boost.build to compile a c ++ code which refers to a library , But having some difficulty with the promotion is to build CNN for a library that compiles with a folder of platforms, for example [Path] / Linux for Linux Build. I would like to include the library [path] / LLUX / LBCGNS in the build. I would like it cross-platform, so that the LINUX directory is referred to Linux and the WIN directory is used for WIN build (I believe it has platform conditions for it).
I include the managed library header file, but how can I include the conditional of the library? My simple test is Jemroot.Jem, where the main CPP is just one example from CGNS docs.
exe CGNSTest: src / main.cpp: & lt; Include & gt; ../ dependency / cgnslib;
In addition, I would like to build my binary (static reference) in the CNGS library
Using two references, and, I have done some work, but it can not be ideal.
lib cgns: #source: # needs & lt; Name & gt; Cgns & lt; Target-os & gt; Linux: & lt; Search & gt; ../ Dependency / cgnslib / linux & lt; Target-os & gt; Windows: & Lt; Search & gt; ../ Dependency / cgnslib / WIN32: # Default-Build: #Usage-Needs & lt; Include & gt; /../ dependence / cgnslib; Aliases static_libraries: cgns: & lt; Link & gt; Stable; Exe CGNSTest: src / main.cpp static_libraries: & lt; Target-os & gt; Windows: & lt; Linkflags & gt; / NODEFAULTLIB: MSVCRTD;
Comments
Post a Comment