From 6d9b40bd158f10bc15e1591634b2ceba5dd20b5f Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Mon, 3 May 2021 17:08:23 +0200 Subject: [PATCH] Get rid of hack to hide a warning during bootstrapping on Windows --- CMakeLists.txt | 4 ---- cmake.toml | 5 ----- cmake/cmkr.cmake | 1 + 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a0609fe..0a2012a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,10 +23,6 @@ if(CMKR_ROOT_PROJECT) configure_file(cmake.toml cmake.toml COPYONLY) endif() -# Hack to hide a warning during cmkr bootstrapping on Windows -if(CMAKE_BUILD_TYPE) -endif() - project(cmkr LANGUAGES CXX diff --git a/cmake.toml b/cmake.toml index 8e2775d..b1a9fd9 100644 --- a/cmake.toml +++ b/cmake.toml @@ -2,11 +2,6 @@ version = "2.8...3.8" [project] -cmake-before = """ -# Hack to hide a warning during cmkr bootstrapping on Windows -if(CMAKE_BUILD_TYPE) -endif() -""" name = "cmkr" version = "0.1.4" description = "CMakeLists generator from TOML" diff --git a/cmake/cmkr.cmake b/cmake/cmkr.cmake index c99ef2b..61d8bbe 100644 --- a/cmake/cmkr.cmake +++ b/cmake/cmkr.cmake @@ -78,6 +78,7 @@ else() ) message(STATUS "[cmkr] Building cmkr...") cmkr_exec("${CMAKE_COMMAND}" + --no-warn-unused-cli "${CMKR_DIRECTORY}" "-B${CMKR_DIRECTORY}/build" "-DCMAKE_BUILD_TYPE=Release"