We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
option
1 parent 1f1cb23 commit cb9ee70Copy full SHA for cb9ee70
cmake/common-config.cmake
@@ -1,5 +1,13 @@
1
2
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
3
4
+# Taken from https://github.com/SFML/SFML
5
+macro(set_option var default type docstring)
6
+ if(NOT DEFINED ${var})
7
+ set(${var} ${default})
8
+ endif()
9
+ set(${var} ${${var}} CACHE ${type} ${docstring} FORCE)
10
+endmacro()
11
+
12
# Project name based on the given platform name
-option(PROJECT_TARGET_NAME "The postfix added to the project name" "generic")
13
+set_option(PROJECT_TARGET_NAME "generic" STRING "The postfix added to the project name")
0 commit comments