diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 31518ec0d..a4a3b5ad4 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -307,6 +307,9 @@ endfunction() macro(configureCMake) message(STATUS "Configuring ImHex v${IMHEX_VERSION}") + # Enable C and C++ languages + enable_language(C CXX) + set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "Enable position independent code for all targets" FORCE) # Configure use of recommended build tools