Skip to content

Commit 1119526

Browse files
committed
Use same config for executables.
1 parent 94c1b18 commit 1119526

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/inserts/functions.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@ endfunction(get_configuration_with_generator_unhashed)
353353
########################################
354354

355355
function(get_configuration_exe_unhashed out)
356-
#get_configuration_unhashed(config)
357-
#set(${out} ${config} PARENT_SCOPE)
358-
#return()
356+
get_configuration_unhashed(config)
357+
set(${out} ${config} PARENT_SCOPE)
358+
return()
359359

360360
prepare_config_part(system "${CMAKE_SYSTEM_NAME}")
361361
prepare_config_part(processor "${CMAKE_HOST_SYSTEM_PROCESSOR}")

src/inserts/generate.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ endif()
88
# CPPAN_BUILD_SHARED_LIBS has influence on config vars
99
if (EXECUTABLE)
1010
# TODO: try to work 0->1 <- why? maybe left as is?
11-
set(CPPAN_BUILD_SHARED_LIBS 0)
11+
#set(CPPAN_BUILD_SHARED_LIBS 0)
1212
endif()
1313

1414
# after all settings
@@ -80,6 +80,7 @@ if (NOT EXISTS ${import} OR
8080
# TODO: fix executables bootstrapping
8181
# BUG: copying bad cmake config dirs (32 - 64 bits)
8282
#set(from ${storage_dir_cfg}/${config_dir}/CMakeFiles/${CMAKE_VERSION})
83+
set(from ${CMAKE_BINARY_DIR}/CMakeFiles/${CMAKE_VERSION})
8384
else()
8485
set(from ${CMAKE_BINARY_DIR}/CMakeFiles/${CMAKE_VERSION})
8586
endif()

0 commit comments

Comments
 (0)