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"