Skip to content

Commit 3fa60a2

Browse files
committed
Renamed variables #116
1 parent 6e90d1d commit 3fa60a2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ endif()
115115
################
116116
## ARGS
117117
#########################
118-
option(PROJECT_BUILD_SHARED "Build shared library" ON)
119-
option(PROJECT_BUILD_STATIC "Build static library" ON)
120-
option(PROJECT_INSTALL_HEADER "Install header files" ON)
118+
option(MyHTML_BUILD_SHARED "Build shared library" ON)
119+
option(MyHTML_BUILD_STATIC "Build static library" ON)
120+
option(MyHTML_INSTALL_HEADER "Install header files" ON)
121121

122122
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${PROJECT_OPTIMIZATION_LEVEL}")
123123

@@ -185,13 +185,13 @@ set(MYHTML_LIBRARIES myhtml CACHE STRING "Libraries to link for Myhtml")
185185
################
186186
## Create static/dynamic library
187187
#########################
188-
if(PROJECT_BUILD_SHARED)
188+
if(MyHTML_BUILD_SHARED)
189189
add_library(${PROJECT_LIB_NAME} SHARED ${PROJECT_SOURCES} ${PROJECT_SOURCES_PORT})
190190
set_target_properties(${PROJECT_LIB_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_LIB_NAME})
191191
set_target_properties(${PROJECT_LIB_NAME} PROPERTIES VERSION ${PROJECT_VERSION_STRING} SOVERSION ${PROJECT_VERSION_MAJOR})
192192
endif()
193193

194-
if(PROJECT_BUILD_STATIC)
194+
if(MyHTML_BUILD_STATIC)
195195
add_library(${PROJECT_LIB_NAME_STATIC} STATIC ${PROJECT_SOURCES} ${PROJECT_SOURCES_PORT})
196196
set_target_properties(${PROJECT_LIB_NAME_STATIC} PROPERTIES OUTPUT_NAME ${PROJECT_LIB_NAME_STATIC})
197197
set_target_properties(${PROJECT_LIB_NAME_STATIC} PROPERTIES VERSION ${PROJECT_VERSION_STRING} SOVERSION ${PROJECT_VERSION_MAJOR})
@@ -200,17 +200,17 @@ endif()
200200
################
201201
## install
202202
#########################
203-
if(PROJECT_INSTALL_HEADER)
203+
if(MyHTML_INSTALL_HEADER)
204204
install(DIRECTORY "${PROJECT_DIR_API_HEADER}" DESTINATION "include" FILES_MATCHING PATTERN "*.h")
205205
endif()
206206

207-
if(PROJECT_BUILD_SHARED)
207+
if(MyHTML_BUILD_SHARED)
208208
install(TARGETS ${PROJECT_LIB_NAME}
209209
RUNTIME DESTINATION "${PROJECT_INSTALL_DLL_EXE_DIR}"
210210
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
211211
endif()
212212

213-
if(PROJECT_BUILD_STATIC)
213+
if(MyHTML_BUILD_STATIC)
214214
install(TARGETS ${PROJECT_LIB_NAME_STATIC}
215215
RUNTIME DESTINATION "${PROJECT_INSTALL_DLL_EXE_DIR}"
216216
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")

0 commit comments

Comments
 (0)