Variable Python3_LINK_OPTIONS from cmake is empty

32 Views Asked by At

I am trying to use the variable Python3_LINK_OPTIONS from the FindPython3 module of cmake. However, on all my machines this is empty. I tried different OS (ubuntu, macos, windows) with different versions of cmake all with the same result.

What am I doing wrong or is this variable not properly supported? My minimal CMakeLists.txt test looks like this but it's not giving me the expected result:

cmake_minimum_required(VERSION 3.19)
project(test)

find_package(Python3 REQUIRED COMPONENTS Development)
message("${Python3_LINK_OPTIONS}")
0

There are 0 best solutions below