forked from rraju1/cmake-buildscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExternalPrograms.cmake
37 lines (28 loc) · 1.45 KB
/
ExternalPrograms.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#File to search for miscellaneous programs that Amber uses
#NOTE: must be included after MPIConfig, OpenMPConfig, and CompilerFLags
#------------------------------------------------------------------------------
# check for dl
#------------------------------------------------------------------------------
check_library_exists(dl dlopen "" HAVE_LIBDL)
#-----------------------------------
# M4 for XLeap
#-----------------------------------
find_program(M4 m4)
#------------------------------------------------------------------------------
# Flex
#------------------------------------------------------------------------------
find_package(FLEX REQUIRED)
#------------------------------------------------------------------------------
# bash, for running shell scripts
#------------------------------------------------------------------------------
find_program(BASH bash)
if(BASH AND NOT HOST_WINDOWS)
set(AUTOMAKE_DEFAULT TRUE)
else()
set(AUTOMAKE_DEFAULT FALSE)
endif()
option(CAN_BUILD_AUTOMAKE "Whether it is possible to build dependencies which use Automake build systems on this platform." ${AUTOMAKE_DEFAULT})
#------------------------------------------------------------------------------
# make, for configure scripts
#------------------------------------------------------------------------------
set(MAKE_COMMAND make CACHE STRING "Command to run to make 3rd party projects with autotools / make-based build systems.")