Skip to content

Commit

Permalink
default CMAKE_BUILD_TYPE to Release so it doesn't need to be specifie…
Browse files Browse the repository at this point in the history
…d on single-configurations like Unix Makefile
  • Loading branch information
schnaader committed Jul 23, 2020
1 parent cba2b2b commit f8ea3d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ project(precomp)
set(SRCDIR ${CMAKE_CURRENT_SOURCE_DIR})
set(OBJDIR ${CMAKE_CURRENT_BINARY_DIR})

if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

if (UNIX)
set(CMAKE_C_FLAGS "-DLINUX -DUNIX -DHAVE_STDBOOL_H")
set(CMAKE_C_STANDARD 99)
Expand Down

0 comments on commit f8ea3d4

Please sign in to comment.