Changeset 19325


Ignore:
Timestamp:
Oct 29, 2018, 5:06:36 PM (10 months ago)
Author:
tbretz
Message:
This solution is easier to read
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/CMakeLists.txt

    r19323 r19325  
    243243SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{ROOTSYS}/etc/cmake")
    244244
    245 #--- Root libGQt only required to build the GUI (fact)
    246 IF (NOT TOOLS_ONLY)
    247    SET(ROOT_REQUIRED_COMPONENTS "GQt")
    248 ENDIF()
    249 
    250245#---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS)
    251 FIND_PACKAGE(ROOT REQUIRED COMPONENTS ${ROOT_REQUIRED_COMPONENTS})
     246IF (DEFINED TOOLS_ONLY)
     247   FIND_PACKAGE(ROOT REQUIRED COMPONENTS)
     248ELSE()
     249   FIND_PACKAGE(ROOT REQUIRED COMPONENTS GQt)
     250ENDIF()
    252251
    253252IF(NOT DEFINED ROOT_CONFIG_EXECUTABLE)
Note: See TracChangeset for help on using the changeset viewer.