Skip to content

Commit

Permalink
Set CMake build type in post_import phase
Browse files Browse the repository at this point in the history
  • Loading branch information
chhtz committed Aug 30, 2016
1 parent ac4473b commit 4bc5fd2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion overrides.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
require File.join(File.dirname(__FILE__), 'rock/git_hook')
require File.join(File.dirname(__FILE__), 'rock/cmake_build_type')

# Manage CMake flags in post_import phase
Autoproj.post_import do |pkg|
if pkg.kind_of?(Autobuild::CMake)
Rock.update_cmake_build_type_from_tags(pkg)
end
end

Autoproj.env_add_path 'ROCK_BUNDLE_PATH', File.join(Autobuild.prefix, 'share', 'rock')
Autoproj.env_add_path 'ROCK_BUNDLE_PATH', File.join(Autoproj.root_dir, 'bundles')

Expand Down Expand Up @@ -70,7 +77,6 @@
pkg.optional_dependencies.delete 'ocl'
end
when Autobuild::CMake
Rock.update_cmake_build_type_from_tags(pkg)
pkg.define "ROCK_TEST_ENABLED", pkg.test_utility.enabled?
pkg.define "CMAKE_EXPORT_COMPILE_COMMANDS", "ON"
end
Expand Down

0 comments on commit 4bc5fd2

Please sign in to comment.