Skip to content

Commit e5af442

Browse files
committed
Using pkgconf was a dumb idea
1 parent 6a19001 commit e5af442

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

Framework/cmake/SetupCompilation.cmake

+2-15
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
include("${APP_TARGET}Modules")
22

3-
option(UIMGUI_USE_PKGCONF_FOR_INSTALL "Uses pkgconf to look for the framework to remove the requirement for applications
4-
to bundle the framework source code with the compilation steps of their package" OFF)
53
option(UIMGUI_INSTALL_FRAMEWORK "Whether to install the framework" OFF)
64
option(UIMGUI_INSTALL "Installs all libraries" OFF)
75
option(BUILD_VARIANT_STATIC "Builds the Framework, application library(exists only on Unix) and executable into a single
86
executable binary" OFF)
97

10-
11-
set(UIMGUI_SRC_PREFIX "${CMAKE_SOURCE_DIR}")
12-
if (UIMGUI_USE_PKGCONF_FOR_INSTALL AND UIMGUI_INSTALL_FRAMEWORK)
13-
find_package(PkgConfig)
14-
15-
if (PKG_CONFIG_FOUND)
16-
pkg_check_modules(UntitledImGuiFramework UntitledImGuiFramework)
17-
if (UntitledImGuiFramework_FOUND)
18-
pkg_get_variable(UIMGUI_SRC_PREFIX UntitledImGuiFramework "includedir")
19-
link_directories("${UntitledImGuiFramework_LIBRARY_DIRS}")
20-
include_directories("${UntitledImGuiFramework_INCLUDE_DIRS}")
21-
endif ()
22-
endif()
8+
if (NOT DEFINED UIMGUI_SRC_PREFIX)
9+
set(UIMGUI_SRC_PREFIX "${CMAKE_SOURCE_DIR}")
2310
endif()
2411

2512
if (EMSCRIPTEN)

0 commit comments

Comments
 (0)