Commit | Line | Data |
---|---|---|
7fbb6fe0 GH |
1 | This package requires CMAKE_MODULE_PATH be set by the calling process. This |
2 | patch uses the CMAKE_PREFIX_PATH passed from Guix as the search path for | |
3 | locating the bloomberg-bde-tools CMake modules. | |
4 | ||
5 | --- a/CMakeLists.txt | |
6 | +++ b/CMakeLists.txt | |
7 | @@ -1,8 +1,6 @@ | |
8 | cmake_minimum_required(VERSION 3.15) | |
9 | ||
10 | -if (NOT CMAKE_MODULE_PATH) | |
11 | - message(FATAL "Please specify path to BDE cmake modules.") | |
12 | -endif() | |
13 | +string(REPLACE ":" "cmake/;" CMAKE_MODULE_PATH "$ENV{CMAKE_PREFIX_PATH}cmake/") | |
14 | ||
15 | get_filename_component(repoName ${CMAKE_CURRENT_LIST_DIR} NAME) | |
16 |