Commit 2ac47fe5 by Baruch Sterin

CMake: make it possible to pass ABC_USE_NAMESPACE=FALSE, instead of just empty ABC_USE_NAMESPACE

parent 3237ebaf
...@@ -44,7 +44,7 @@ elseif(READLINE_FOUND MATCHES FALSE) ...@@ -44,7 +44,7 @@ elseif(READLINE_FOUND MATCHES FALSE)
endif() endif()
if(ABC_USE_NAMESPACE) if(ABC_USE_NAMESPACE)
set(ABC_USE_NAMESPACE "ABC_USE_NAMESPACE=${ABC_USE_NAMESPACE}") set(ABC_USE_NAMESPACE_FLAGS "ABC_USE_NAMESPACE=${ABC_USE_NAMESPACE}")
endif() endif()
# run make to extract compiler options, linker options and list of source files # run make to extract compiler options, linker options and list of source files
...@@ -52,7 +52,7 @@ execute_process( ...@@ -52,7 +52,7 @@ execute_process(
COMMAND COMMAND
make make
${ABC_READLINE_FLAGS} ${ABC_READLINE_FLAGS}
${ABC_USE_NAMESPACE} ${ABC_USE_NAMESPACE_FLAGS}
ARCHFLAGS_EXE=${CMAKE_CURRENT_BINARY_DIR}/abc_arch_flags_program.exe ARCHFLAGS_EXE=${CMAKE_CURRENT_BINARY_DIR}/abc_arch_flags_program.exe
ABC_MAKE_NO_DEPS=1 ABC_MAKE_NO_DEPS=1
CC=${CMAKE_C_COMPILER} CC=${CMAKE_C_COMPILER}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment