From: ThorstenB Date: Mon, 12 Mar 2012 20:15:05 +0000 (+0100) Subject: #706: Properly set FLTK include directory. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f453523b6720b5c70fde985de0c84e2a84834c59;p=flightgear.git #706: Properly set FLTK include directory. --- 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}