CMake 3.12 With Vulkan in CLion Issues












0















I am trying to link Vulkan correctly in CMake, and I receive an error when I attempt to refresh/build. Here is my CMakeList.txt:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

find_package(Vulkan REQUIRED)

include_directories(${Vulkan_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY})


However, I receive the following error:




C:Usersusername.CLion2018.2systemcygwin_cmakebincmake.exe
-DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /cygdrive/c/Users/username/Projects/Programming/game
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY) CMake Error: The following variables are used in this project, but they are set to
NOTFOUND. Please set them or make sure they are set and tested
correctly in the CMake files: Vulkan_LIBRARY (ADVANCED)
linked by target "game" in directory /cygdrive/c/Users/username/Projects/Programming/game




So, I have tried to do it manually:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

find_path(Vulkan_INCLUDE_DIR NAMES vulkan/vulkan.h PATHS "$ENV{VULKAN_SDK}/Include")
find_library(Vulkan_LIBRARY NAMES "vulkan-1" PATHS "$ENV{VULKAN_SDK}/Lib" NO_DEFAULT_PATH)

include_directories(${Vulkan_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY})


And still get another error...




C:Usersusername.CLion2018.2systemcygwin_cmakebincmake.exe
-DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /cygdrive/c/Users/username/Projects/Programming/game CMake Error: The
following variables are used in this project, but they are set to
NOTFOUND. Please set them or make sure they are set and tested
correctly in the CMake files: Vulkan_LIBRARY
linked by target "game" in directory /cygdrive/c/Users/username/Projects/Programming/game




Now, this baffles me because I have installed the Vulkan SDK and my VULKAN_SDK path variable is set correctly. It also seems to gather the include directory correctly, and only fails when trying to get the library. I have also checked in my file explorer that the vulkan-1.lib file exists and is in the path searched by $ENV{VULKAN_SDK}/Lib. What could possibly go wrong? Is it something to do with cygwin or my cmake version? I am using c++ (GCC) 7.3.0 from cygwin x64 and cmake 3.12.3 bundled with CLion.



EDIT: This works, but I do not want it to be a permanent solution:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

include_directories("$ENV{VULKAN_SDK}/Include")
target_link_libraries(${PROJECT_NAME} "$ENV{VULKAN_SDK}/Lib/vulkan-1.lib")









share|improve this question

























  • Could you check content of CMAKE_FIND_LIBRARY_SUFFIXES variable (via message())? On Windows systems it should contain .lib, but I am not sure about cygwin environment. Also, using PATH $ENV{VULKAN_SDK}/Lib looks weird (well, it is how it is used in FindVulkan.cmake script, but nevertheless). Try to replace the option with two options PATH ENV VULKAN_SDK PATH_SUFFIXES Lib, which properly handle Windows path separators.

    – Tsyvarev
    Nov 22 '18 at 8:07











  • The output of message(${CMAKE_FIND_LIBRARY_SUFFIXES}) is .dll.a.a. I just tried set(CMAKE_FIND_LIBRARY_SUFFIXES .lib) find_path(Vulkan_INCLUDE_DIR NAMES vulkan/vulkan.h PATHS ENV VULKAN_SDK PATH_SUFFIXES Include) find_library(Vulkan_LIBRARY NAMES vulkan-1 PATHS ENV VULKAN_SDK PATH_SUFFIXES Lib) include_directories(${Vulkan_INCLUDE_DIR}) target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY}) and it still didn't work...

    – major.quin_n
    Nov 22 '18 at 8:52











  • .dll.a.a is actually .dll.a;.a - a list of two values, .dll.a and .a. (Hint: For output list variables, enclose them into double quotes: message("${CMAKE_FIND_LIBRARY_SUFFIXES}"). Could you repeat the same with CMAKE_FIND_LIBRARY_PREFIXES variable? For find unprefixed vulkan-1.lib, the list variable should contain empty string as one of its values. Something like ;lib.

    – Tsyvarev
    Nov 22 '18 at 9:07













  • The output is just lib, no empty item.

    – major.quin_n
    Nov 22 '18 at 9:27











  • Okay somehow I got it to work, see my answer. Not sure what happened. Anyways, thanks for taking the time to help, I appreciate.

    – major.quin_n
    Nov 22 '18 at 9:32
















0















I am trying to link Vulkan correctly in CMake, and I receive an error when I attempt to refresh/build. Here is my CMakeList.txt:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

find_package(Vulkan REQUIRED)

include_directories(${Vulkan_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY})


However, I receive the following error:




C:Usersusername.CLion2018.2systemcygwin_cmakebincmake.exe
-DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /cygdrive/c/Users/username/Projects/Programming/game
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY) CMake Error: The following variables are used in this project, but they are set to
NOTFOUND. Please set them or make sure they are set and tested
correctly in the CMake files: Vulkan_LIBRARY (ADVANCED)
linked by target "game" in directory /cygdrive/c/Users/username/Projects/Programming/game




So, I have tried to do it manually:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

find_path(Vulkan_INCLUDE_DIR NAMES vulkan/vulkan.h PATHS "$ENV{VULKAN_SDK}/Include")
find_library(Vulkan_LIBRARY NAMES "vulkan-1" PATHS "$ENV{VULKAN_SDK}/Lib" NO_DEFAULT_PATH)

include_directories(${Vulkan_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY})


And still get another error...




C:Usersusername.CLion2018.2systemcygwin_cmakebincmake.exe
-DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /cygdrive/c/Users/username/Projects/Programming/game CMake Error: The
following variables are used in this project, but they are set to
NOTFOUND. Please set them or make sure they are set and tested
correctly in the CMake files: Vulkan_LIBRARY
linked by target "game" in directory /cygdrive/c/Users/username/Projects/Programming/game




Now, this baffles me because I have installed the Vulkan SDK and my VULKAN_SDK path variable is set correctly. It also seems to gather the include directory correctly, and only fails when trying to get the library. I have also checked in my file explorer that the vulkan-1.lib file exists and is in the path searched by $ENV{VULKAN_SDK}/Lib. What could possibly go wrong? Is it something to do with cygwin or my cmake version? I am using c++ (GCC) 7.3.0 from cygwin x64 and cmake 3.12.3 bundled with CLion.



EDIT: This works, but I do not want it to be a permanent solution:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

include_directories("$ENV{VULKAN_SDK}/Include")
target_link_libraries(${PROJECT_NAME} "$ENV{VULKAN_SDK}/Lib/vulkan-1.lib")









share|improve this question

























  • Could you check content of CMAKE_FIND_LIBRARY_SUFFIXES variable (via message())? On Windows systems it should contain .lib, but I am not sure about cygwin environment. Also, using PATH $ENV{VULKAN_SDK}/Lib looks weird (well, it is how it is used in FindVulkan.cmake script, but nevertheless). Try to replace the option with two options PATH ENV VULKAN_SDK PATH_SUFFIXES Lib, which properly handle Windows path separators.

    – Tsyvarev
    Nov 22 '18 at 8:07











  • The output of message(${CMAKE_FIND_LIBRARY_SUFFIXES}) is .dll.a.a. I just tried set(CMAKE_FIND_LIBRARY_SUFFIXES .lib) find_path(Vulkan_INCLUDE_DIR NAMES vulkan/vulkan.h PATHS ENV VULKAN_SDK PATH_SUFFIXES Include) find_library(Vulkan_LIBRARY NAMES vulkan-1 PATHS ENV VULKAN_SDK PATH_SUFFIXES Lib) include_directories(${Vulkan_INCLUDE_DIR}) target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY}) and it still didn't work...

    – major.quin_n
    Nov 22 '18 at 8:52











  • .dll.a.a is actually .dll.a;.a - a list of two values, .dll.a and .a. (Hint: For output list variables, enclose them into double quotes: message("${CMAKE_FIND_LIBRARY_SUFFIXES}"). Could you repeat the same with CMAKE_FIND_LIBRARY_PREFIXES variable? For find unprefixed vulkan-1.lib, the list variable should contain empty string as one of its values. Something like ;lib.

    – Tsyvarev
    Nov 22 '18 at 9:07













  • The output is just lib, no empty item.

    – major.quin_n
    Nov 22 '18 at 9:27











  • Okay somehow I got it to work, see my answer. Not sure what happened. Anyways, thanks for taking the time to help, I appreciate.

    – major.quin_n
    Nov 22 '18 at 9:32














0












0








0








I am trying to link Vulkan correctly in CMake, and I receive an error when I attempt to refresh/build. Here is my CMakeList.txt:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

find_package(Vulkan REQUIRED)

include_directories(${Vulkan_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY})


However, I receive the following error:




C:Usersusername.CLion2018.2systemcygwin_cmakebincmake.exe
-DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /cygdrive/c/Users/username/Projects/Programming/game
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY) CMake Error: The following variables are used in this project, but they are set to
NOTFOUND. Please set them or make sure they are set and tested
correctly in the CMake files: Vulkan_LIBRARY (ADVANCED)
linked by target "game" in directory /cygdrive/c/Users/username/Projects/Programming/game




So, I have tried to do it manually:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

find_path(Vulkan_INCLUDE_DIR NAMES vulkan/vulkan.h PATHS "$ENV{VULKAN_SDK}/Include")
find_library(Vulkan_LIBRARY NAMES "vulkan-1" PATHS "$ENV{VULKAN_SDK}/Lib" NO_DEFAULT_PATH)

include_directories(${Vulkan_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY})


And still get another error...




C:Usersusername.CLion2018.2systemcygwin_cmakebincmake.exe
-DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /cygdrive/c/Users/username/Projects/Programming/game CMake Error: The
following variables are used in this project, but they are set to
NOTFOUND. Please set them or make sure they are set and tested
correctly in the CMake files: Vulkan_LIBRARY
linked by target "game" in directory /cygdrive/c/Users/username/Projects/Programming/game




Now, this baffles me because I have installed the Vulkan SDK and my VULKAN_SDK path variable is set correctly. It also seems to gather the include directory correctly, and only fails when trying to get the library. I have also checked in my file explorer that the vulkan-1.lib file exists and is in the path searched by $ENV{VULKAN_SDK}/Lib. What could possibly go wrong? Is it something to do with cygwin or my cmake version? I am using c++ (GCC) 7.3.0 from cygwin x64 and cmake 3.12.3 bundled with CLion.



EDIT: This works, but I do not want it to be a permanent solution:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

include_directories("$ENV{VULKAN_SDK}/Include")
target_link_libraries(${PROJECT_NAME} "$ENV{VULKAN_SDK}/Lib/vulkan-1.lib")









share|improve this question
















I am trying to link Vulkan correctly in CMake, and I receive an error when I attempt to refresh/build. Here is my CMakeList.txt:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

find_package(Vulkan REQUIRED)

include_directories(${Vulkan_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY})


However, I receive the following error:




C:Usersusername.CLion2018.2systemcygwin_cmakebincmake.exe
-DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /cygdrive/c/Users/username/Projects/Programming/game
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY) CMake Error: The following variables are used in this project, but they are set to
NOTFOUND. Please set them or make sure they are set and tested
correctly in the CMake files: Vulkan_LIBRARY (ADVANCED)
linked by target "game" in directory /cygdrive/c/Users/username/Projects/Programming/game




So, I have tried to do it manually:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

find_path(Vulkan_INCLUDE_DIR NAMES vulkan/vulkan.h PATHS "$ENV{VULKAN_SDK}/Include")
find_library(Vulkan_LIBRARY NAMES "vulkan-1" PATHS "$ENV{VULKAN_SDK}/Lib" NO_DEFAULT_PATH)

include_directories(${Vulkan_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY})


And still get another error...




C:Usersusername.CLion2018.2systemcygwin_cmakebincmake.exe
-DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /cygdrive/c/Users/username/Projects/Programming/game CMake Error: The
following variables are used in this project, but they are set to
NOTFOUND. Please set them or make sure they are set and tested
correctly in the CMake files: Vulkan_LIBRARY
linked by target "game" in directory /cygdrive/c/Users/username/Projects/Programming/game




Now, this baffles me because I have installed the Vulkan SDK and my VULKAN_SDK path variable is set correctly. It also seems to gather the include directory correctly, and only fails when trying to get the library. I have also checked in my file explorer that the vulkan-1.lib file exists and is in the path searched by $ENV{VULKAN_SDK}/Lib. What could possibly go wrong? Is it something to do with cygwin or my cmake version? I am using c++ (GCC) 7.3.0 from cygwin x64 and cmake 3.12.3 bundled with CLion.



EDIT: This works, but I do not want it to be a permanent solution:



cmake_minimum_required(VERSION 3.12)
project(game)

set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES game.cpp window.cpp window.hpp type_definitions.hpp windows_definitions.hpp)

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

include_directories("$ENV{VULKAN_SDK}/Include")
target_link_libraries(${PROJECT_NAME} "$ENV{VULKAN_SDK}/Lib/vulkan-1.lib")






c++ gcc cmake clion vulkan






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 5:02







major.quin_n

















asked Nov 22 '18 at 3:15









major.quin_nmajor.quin_n

113




113













  • Could you check content of CMAKE_FIND_LIBRARY_SUFFIXES variable (via message())? On Windows systems it should contain .lib, but I am not sure about cygwin environment. Also, using PATH $ENV{VULKAN_SDK}/Lib looks weird (well, it is how it is used in FindVulkan.cmake script, but nevertheless). Try to replace the option with two options PATH ENV VULKAN_SDK PATH_SUFFIXES Lib, which properly handle Windows path separators.

    – Tsyvarev
    Nov 22 '18 at 8:07











  • The output of message(${CMAKE_FIND_LIBRARY_SUFFIXES}) is .dll.a.a. I just tried set(CMAKE_FIND_LIBRARY_SUFFIXES .lib) find_path(Vulkan_INCLUDE_DIR NAMES vulkan/vulkan.h PATHS ENV VULKAN_SDK PATH_SUFFIXES Include) find_library(Vulkan_LIBRARY NAMES vulkan-1 PATHS ENV VULKAN_SDK PATH_SUFFIXES Lib) include_directories(${Vulkan_INCLUDE_DIR}) target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY}) and it still didn't work...

    – major.quin_n
    Nov 22 '18 at 8:52











  • .dll.a.a is actually .dll.a;.a - a list of two values, .dll.a and .a. (Hint: For output list variables, enclose them into double quotes: message("${CMAKE_FIND_LIBRARY_SUFFIXES}"). Could you repeat the same with CMAKE_FIND_LIBRARY_PREFIXES variable? For find unprefixed vulkan-1.lib, the list variable should contain empty string as one of its values. Something like ;lib.

    – Tsyvarev
    Nov 22 '18 at 9:07













  • The output is just lib, no empty item.

    – major.quin_n
    Nov 22 '18 at 9:27











  • Okay somehow I got it to work, see my answer. Not sure what happened. Anyways, thanks for taking the time to help, I appreciate.

    – major.quin_n
    Nov 22 '18 at 9:32



















  • Could you check content of CMAKE_FIND_LIBRARY_SUFFIXES variable (via message())? On Windows systems it should contain .lib, but I am not sure about cygwin environment. Also, using PATH $ENV{VULKAN_SDK}/Lib looks weird (well, it is how it is used in FindVulkan.cmake script, but nevertheless). Try to replace the option with two options PATH ENV VULKAN_SDK PATH_SUFFIXES Lib, which properly handle Windows path separators.

    – Tsyvarev
    Nov 22 '18 at 8:07











  • The output of message(${CMAKE_FIND_LIBRARY_SUFFIXES}) is .dll.a.a. I just tried set(CMAKE_FIND_LIBRARY_SUFFIXES .lib) find_path(Vulkan_INCLUDE_DIR NAMES vulkan/vulkan.h PATHS ENV VULKAN_SDK PATH_SUFFIXES Include) find_library(Vulkan_LIBRARY NAMES vulkan-1 PATHS ENV VULKAN_SDK PATH_SUFFIXES Lib) include_directories(${Vulkan_INCLUDE_DIR}) target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY}) and it still didn't work...

    – major.quin_n
    Nov 22 '18 at 8:52











  • .dll.a.a is actually .dll.a;.a - a list of two values, .dll.a and .a. (Hint: For output list variables, enclose them into double quotes: message("${CMAKE_FIND_LIBRARY_SUFFIXES}"). Could you repeat the same with CMAKE_FIND_LIBRARY_PREFIXES variable? For find unprefixed vulkan-1.lib, the list variable should contain empty string as one of its values. Something like ;lib.

    – Tsyvarev
    Nov 22 '18 at 9:07













  • The output is just lib, no empty item.

    – major.quin_n
    Nov 22 '18 at 9:27











  • Okay somehow I got it to work, see my answer. Not sure what happened. Anyways, thanks for taking the time to help, I appreciate.

    – major.quin_n
    Nov 22 '18 at 9:32

















Could you check content of CMAKE_FIND_LIBRARY_SUFFIXES variable (via message())? On Windows systems it should contain .lib, but I am not sure about cygwin environment. Also, using PATH $ENV{VULKAN_SDK}/Lib looks weird (well, it is how it is used in FindVulkan.cmake script, but nevertheless). Try to replace the option with two options PATH ENV VULKAN_SDK PATH_SUFFIXES Lib, which properly handle Windows path separators.

– Tsyvarev
Nov 22 '18 at 8:07





Could you check content of CMAKE_FIND_LIBRARY_SUFFIXES variable (via message())? On Windows systems it should contain .lib, but I am not sure about cygwin environment. Also, using PATH $ENV{VULKAN_SDK}/Lib looks weird (well, it is how it is used in FindVulkan.cmake script, but nevertheless). Try to replace the option with two options PATH ENV VULKAN_SDK PATH_SUFFIXES Lib, which properly handle Windows path separators.

– Tsyvarev
Nov 22 '18 at 8:07













The output of message(${CMAKE_FIND_LIBRARY_SUFFIXES}) is .dll.a.a. I just tried set(CMAKE_FIND_LIBRARY_SUFFIXES .lib) find_path(Vulkan_INCLUDE_DIR NAMES vulkan/vulkan.h PATHS ENV VULKAN_SDK PATH_SUFFIXES Include) find_library(Vulkan_LIBRARY NAMES vulkan-1 PATHS ENV VULKAN_SDK PATH_SUFFIXES Lib) include_directories(${Vulkan_INCLUDE_DIR}) target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY}) and it still didn't work...

– major.quin_n
Nov 22 '18 at 8:52





The output of message(${CMAKE_FIND_LIBRARY_SUFFIXES}) is .dll.a.a. I just tried set(CMAKE_FIND_LIBRARY_SUFFIXES .lib) find_path(Vulkan_INCLUDE_DIR NAMES vulkan/vulkan.h PATHS ENV VULKAN_SDK PATH_SUFFIXES Include) find_library(Vulkan_LIBRARY NAMES vulkan-1 PATHS ENV VULKAN_SDK PATH_SUFFIXES Lib) include_directories(${Vulkan_INCLUDE_DIR}) target_link_libraries(${PROJECT_NAME} ${Vulkan_LIBRARY}) and it still didn't work...

– major.quin_n
Nov 22 '18 at 8:52













.dll.a.a is actually .dll.a;.a - a list of two values, .dll.a and .a. (Hint: For output list variables, enclose them into double quotes: message("${CMAKE_FIND_LIBRARY_SUFFIXES}"). Could you repeat the same with CMAKE_FIND_LIBRARY_PREFIXES variable? For find unprefixed vulkan-1.lib, the list variable should contain empty string as one of its values. Something like ;lib.

– Tsyvarev
Nov 22 '18 at 9:07







.dll.a.a is actually .dll.a;.a - a list of two values, .dll.a and .a. (Hint: For output list variables, enclose them into double quotes: message("${CMAKE_FIND_LIBRARY_SUFFIXES}"). Could you repeat the same with CMAKE_FIND_LIBRARY_PREFIXES variable? For find unprefixed vulkan-1.lib, the list variable should contain empty string as one of its values. Something like ;lib.

– Tsyvarev
Nov 22 '18 at 9:07















The output is just lib, no empty item.

– major.quin_n
Nov 22 '18 at 9:27





The output is just lib, no empty item.

– major.quin_n
Nov 22 '18 at 9:27













Okay somehow I got it to work, see my answer. Not sure what happened. Anyways, thanks for taking the time to help, I appreciate.

– major.quin_n
Nov 22 '18 at 9:32





Okay somehow I got it to work, see my answer. Not sure what happened. Anyways, thanks for taking the time to help, I appreciate.

– major.quin_n
Nov 22 '18 at 9:32












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53423362%2fcmake-3-12-with-vulkan-in-clion-issues%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53423362%2fcmake-3-12-with-vulkan-in-clion-issues%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

'app-layout' is not a known element: how to share Component with different Modules

android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

WPF add header to Image with URL pettitions [duplicate]