Skip to content

Commit 58dbbbd

Browse files
committed
improved find_package
1 parent ee96bd4 commit 58dbbbd

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ endif()
119119

120120
message(STATUS "cryptoTools options\n=======================================================")
121121

122+
message(STATUS "Option: CRYPTO_TOOLS_STD_VER = ${CRYPTO_TOOLS_STD_VER}\n")
123+
122124
message(STATUS "Option: FETCH_AUTO = ${FETCH_AUTO}")
123125
message(STATUS "Option: VERBOSE_FETCH = ${VERBOSE_FETCH}\n")
124126

@@ -142,7 +144,6 @@ message(STATUS "Option: ENABLE_PIC = ${ENABLE_PIC}")
142144
message(STATUS "Option: ENABLE_ASAN = ${ENABLE_ASAN}\n\n")
143145

144146

145-
146147
#############################################
147148
# cryptoTools, tests, frontend #
148149
#############################################

cmake/cryptoToolsDepHelper.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ macro(FIND_COPROTO)
200200

201201
set(COPROTO_COMPONENTS ${COPROTO_COMPONENTS} cpp${CRYPTO_TOOLS_STD_VER})
202202

203-
if( "${CMAKE_BUILD_TYPE}" STREQUAL "Release"
204-
OR "${CMAKE_BUILD_TYPE}" STREQUAL "Debug"
205-
OR "${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo" )
206-
set(COPROTO_COMPONENTS ${COPROTO_COMPONENTS} ${CMAKE_BUILD_TYPE} )
203+
if( "${CRYPTO_TOOLS_STD_VER}" STREQUAL "Release"
204+
OR "${CRYPTO_TOOLS_STD_VER}" STREQUAL "Debug"
205+
OR "${CRYPTO_TOOLS_STD_VER}" STREQUAL "RelWithDebInfo" )
206+
set(COPROTO_COMPONENTS ${COPROTO_COMPONENTS} ${CRYPTO_TOOLS_STD_VER} )
207207
endif()
208208

209209
find_package(coproto ${COPROTO_DP} ${ARGN} COMPONENTS ${COPROTO_COMPONENTS})

0 commit comments

Comments
 (0)