-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile_configure.rb
More file actions
22 lines (22 loc) · 911 Bytes
/
Copy pathRakefile_configure.rb
File metadata and controls
22 lines (22 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# Check for a configuration file on a upper directory.
# This permits to use a unique configuration file for
# large projects.
# On a local project use the default in this file.
#
if File.exists?(File.expand_path('../Rakefile_configure.rb', File.dirname(__FILE__))) then
# found in the root of the local project
require_relative '../Rakefile_configure.rb'
elsif File.exists?(File.expand_path('../../Rakefile_configure.rb', File.dirname(__FILE__))) then
# found in the upper project
require_relative '../../Rakefile_configure.rb'
elsif File.exists?(File.expand_path('../../cmake_utils/Rakefile_configure.rb', File.dirname(__FILE__))) then
# found in the upper project under cmake_utils
require_relative '../../cmake_utils/Rakefile_configure.rb'
else
#-------------------------
COMPILE_DEBUG = false
COMPILE_DYNAMIC = false
COMPILE_EXECUTABLE = true
#-------------------------
end