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

[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}).