Get rid of hack to hide a warning during bootstrapping on Windows

vcpkg-wip
Duncan Ogilvie 4 years ago
parent c4673d59e2
commit 6d9b40bd15

@ -23,10 +23,6 @@ if(CMKR_ROOT_PROJECT)
configure_file(cmake.toml cmake.toml COPYONLY) configure_file(cmake.toml cmake.toml COPYONLY)
endif() endif()
# Hack to hide a warning during cmkr bootstrapping on Windows
if(CMAKE_BUILD_TYPE)
endif()
project(cmkr project(cmkr
LANGUAGES LANGUAGES
CXX CXX

@ -2,11 +2,6 @@
version = "2.8...3.8" version = "2.8...3.8"
[project] [project]
cmake-before = """
# Hack to hide a warning during cmkr bootstrapping on Windows
if(CMAKE_BUILD_TYPE)
endif()
"""
name = "cmkr" name = "cmkr"
version = "0.1.4" version = "0.1.4"
description = "CMakeLists generator from TOML" description = "CMakeLists generator from TOML"

@ -78,6 +78,7 @@ else()
) )
message(STATUS "[cmkr] Building cmkr...") message(STATUS "[cmkr] Building cmkr...")
cmkr_exec("${CMAKE_COMMAND}" cmkr_exec("${CMAKE_COMMAND}"
--no-warn-unused-cli
"${CMKR_DIRECTORY}" "${CMKR_DIRECTORY}"
"-B${CMKR_DIRECTORY}/build" "-B${CMKR_DIRECTORY}/build"
"-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_BUILD_TYPE=Release"

Loading…
Cancel
Save