Skip to content

Commit 91b0cfb

Browse files
committed
Correct issue with dest directory
Now created at correct location and time in the process
1 parent b7399e1 commit 91b0cfb

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

external/flux_sdk_import.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,5 @@ if (NOT FLUX_SDK_PATH)
2020
endif()
2121
endif()
2222

23-
24-
if ( NOT EXISTS ${PROJECT_FLUX_DIRECTORY} )
25-
message(STATUS "Creating directory: ${PROJECT_FLUX_DIRECTORY}")
26-
file(MAKE_DIRECTORY ${PROJECT_FLUX_DIRECTORY})
27-
endif()
28-
2923
# crawl the flux-sdk directory and add all the subdirectories
3024
include(${FLUX_SDK_PATH}/flux_sdk_init.cmake)

flux_sdk_init.cmake

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,21 @@
55
# flux_sdk_version()
66
include(${CMAKE_CURRENT_LIST_DIR}/flux_sdk_version.cmake)
77

8-
8+
# set language to NONE- disables compiler checks - too
9+
# project(${CMAKE_PROJECT_NAME} NONE)
910

1011
############################################################################
1112
# flux_sdk_set_project_directory()
1213
#
1314
macro(flux_sdk_set_project_directory project_directory)
15+
1416
set(PROJECT_FLUX_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${project_directory}/Flux)
17+
18+
if ( NOT EXISTS ${PROJECT_FLUX_DIRECTORY} )
19+
message(STATUS "Creating directory: ${PROJECT_FLUX_DIRECTORY}")
20+
file(MAKE_DIRECTORY ${PROJECT_FLUX_DIRECTORY})
21+
endif()
22+
1523
endmacro()
1624
############################################################################
1725
# flux_sdk_add_module()

0 commit comments

Comments
 (0)