Thunks: Fix guest targets not being detected by IDEs

The IDE integration path didn't set up the BITNESS variable. This change
also unmarks that variable as a CMake option since it's not a boolean value.
This commit is contained in:
Tony Wasserka 2022-11-08 15:27:02 +01:00
parent 5336f01725
commit 14b22487f1

View File

@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.14)
project(guest-thunks)
option(BITNESS "Which bitness the thunks are building for" 64)
option(ENABLE_CLANG_THUNKS "Enable building thunks with clang" FALSE)
if (ENABLE_CLANG_THUNKS)
@ -34,6 +33,7 @@ else()
set(GENERATOR_EXE thunkgen)
set(TARGET_TYPE OBJECT)
set(GENERATE_GUEST_INSTALL_TARGETS FALSE)
set(BITNESS 64)
endif()
# Syntax: generate(libxyz libxyz-interface.cpp)