cmake: force linking before gint

This commit is contained in:
Lephenixnoir 2021-02-04 21:55:04 +01:00
parent 08ee98cef1
commit fd90842b82
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -1,6 +1,8 @@
include(FindSimpleLibrary) include(FindSimpleLibrary)
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package(Gint 2.2.1 REQUIRED)
find_simple_library("libprof-${FXSDK_PLATFORM}.a" include/libprof.h find_simple_library("libprof-${FXSDK_PLATFORM}.a" include/libprof.h
"PROF_VERSION" PATH_VAR PROF_PATH VERSION_VAR PROF_VERSION) "PROF_VERSION" PATH_VAR PROF_PATH VERSION_VAR PROF_VERSION)
@ -12,5 +14,6 @@ if(LibProf_FOUND)
add_library(LibProf::LibProf UNKNOWN IMPORTED) add_library(LibProf::LibProf UNKNOWN IMPORTED)
set_target_properties(LibProf::LibProf PROPERTIES set_target_properties(LibProf::LibProf PROPERTIES
IMPORTED_LOCATION "${PROF_PATH}" IMPORTED_LOCATION "${PROF_PATH}"
INTERFACE_LINK_OPTIONS -lprof-${FXSDK_PLATFORM}) INTERFACE_LINK_OPTIONS -lprof-${FXSDK_PLATFORM}
IMPORTED_LINK_INTERFACE_LIBRARIES Gint::Gint)
endif() endif()