Commit 90a52b77 authored by Kohei Yoshida's avatar Kohei Yoshida

Further tweak the cmake script.

The option function is for boolean options. For a string option, we
should use set() with CACHE STRING properties.

Also further silence warnings on inplicit conversions.
parent e7398c37
Pipeline #45178319 passed with stage
in 3 minutes and 47 seconds
......@@ -21,11 +21,11 @@ enable_testing()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251 /wd4275 /wd4267 /MP")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251 /wd4275 /wd4267 /wd4244 /MP")
option(MDDS_INCLUDEDIR "path to mdds header directory.")
option(SPDLOG_INCLUDEDIR "path to spdlog header directory.")
set(MDDS_INCLUDEDIR "" CACHE STRING "path to mdds header directory.")
set(SPDLOG_INCLUDEDIR "" CACHE STRING "path to spdlog header directory.")
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