diff --git a/CMakeLists.txt b/CMakeLists.txt index 1952d7c86..cf6424068 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -209,9 +209,6 @@ if(ENABLE_FGADMIN) list(APPEND FLTK_LIBRARIES ${X11_Xft_LIB}) endif() - set( CMAKE_REQUIRED_INCLUDES ${FLTK_INCLUDE_DIR} ) - set( CMAKE_REQUIRED_LIBRARIES ${FLTK_LIBRARIES} ) - message(STATUS "Using FLTK_LIBRARIES for fgadmin: ${FLTK_LIBRARIES}") endif ( FLTK_FOUND ) endif(ENABLE_FGADMIN) diff --git a/utils/fgadmin/src/CMakeLists.txt b/utils/fgadmin/src/CMakeLists.txt index 222a4c62f..42b95d799 100644 --- a/utils/fgadmin/src/CMakeLists.txt +++ b/utils/fgadmin/src/CMakeLists.txt @@ -5,6 +5,8 @@ add_library(FGAdminUI ${FGAdminUI_FLTK_UI_SRCS}) add_executable(fgadmin fgadmin_funcs.cxx main.cxx untarka.c) add_dependencies(fgadmin FGAdminUI) +include_directories(${FLTK_INCLUDE_DIR}) + target_link_libraries(fgadmin FGAdminUI ${SIMGEAR_CORE_LIBRARIES} ${PLIB_LIBRARIES}