mirror of
https://git.planet-casio.com/Lephenixnoir/libprof.git
synced 2024-12-26 19:43:41 +01:00
cmake: force linking before gint
This commit is contained in:
parent
08ee98cef1
commit
fd90842b82
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue