Re: [CMake] Question about list ordering

2019-11-12 Thread Eric Doenges
The list command is what you want. Specifically, list(GET ...) will return the index of a string in the list, and list(INSERT ...) and list(REMOVE_ITEM ...) or list(REMOVE_AT ...) to insert and remove items. Am 13.11.19 um 00:56 schrieb U

[CMake] Question about list ordering

2019-11-12 Thread Unnamed User
Hello everyone, i'm relative new to CMake and i need a function that does change the order of a list. So for example when i have a list like set(LIBS_TO_BUILD "BOOST;EIGEN;PYTHON;GLUT;GLFW;NLOHMANNJSON") i need a function to swap places like listSwapString("GLUT", "GLFW", ${LIBS_TO_BUILD}).

[CMake] MSVC Version Location for VisualStudio Install

2019-11-12 Thread J. Caleb Wherry
All, I have been adding support for VS2019 to our build and ran into some CMake code that was hard coded for a specific version related to MSVC. Specifically, it is the folder under the VS install dir with version like "14.23.28105". It is in the path for where the compiler is found but I can't fi

Re: [CMake] CMake link to external library

2019-11-12 Thread Andrew Bell
On Tue, Nov 12, 2019 at 7:39 AM . wrote: > Hi, > I used instruction for CMake linking external library from > https://stackoverflow.com/questions/8774593/cmake-link-to-external-library(for > example) > And it works on Ubuntu 16 only. > > When I try it made on Ubuntu 18 I got problem during start

[CMake] CMake link to external library

2019-11-12 Thread .
Hi, I used instruction for CMake linking external library from  https://stackoverflow.com/questions/8774593/cmake-link-to-external-library(for example) And it works on Ubuntu 16 only. When I try it made on Ubuntu 18 I got problem during start application:  error while loading shared libraries: li