Relative Content

Tag Archive for cmake

Set the _VERSION_MAJOR, _VERSION_MINOR

I have a simple find_package(pack 1.0.0 REQUIRED EXACT) in top level CMakeLists.txt
Now, I want to give a specific format like MAJOR.MINOR.PATCH/TWEAK and set these variables using find_package. How can I do this?
I read cmake documenatation about _MAJOR_VERSION etc but could not get an example or details on my specific scenario: https://cmake.org/cmake/help/latest/command/find_package.html#version-selection

Problem escaping semicolon and quotes in cmake

I am trying to set the CMAKE_CROSSCOMPILING_EMULATOR variable in my cmake toolchain file so that it runs wine with the WINEPATH environment set to WINEPATH="/usr/x86_64-w64-mingw32/lib;/usr/lib/gcc/x86_64-w64-mingw32/9.3-posix".