- Commit
- 500c62bd380e52e13972f4c2971346d9ab1e63ed
- Parent
- 1e1a96d7607ac77759070dcac5e0cb2b72c4ddaa
- Author
- John MacFarlane <fiddlosopher@gmail.com>
- Date
Properly set default build type in CMakeLists.txt.
My personal build of CMark ✏️
Properly set default build type in CMakeLists.txt.
1 file changed, 4 insertions, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | CMakeLists.txt | 5 | 4 | 1 |
diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -14,7 +14,10 @@ set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_ add_subdirectory(src) -set(CMAKE_BUILD_TYPE Release) +if(NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release" CACHE STRING + "Choose the type of build, options are: Debug Release." FORCE) +endif(NOT CMAKE_BUILD_TYPE) set(CPACK_GENERATOR TGZ ZIP) if(WIN32 AND NOT CYGWIN)